java.lang.RuntimeException

Unable to start activity ComponentInfo{com.example.first_app/com.example.first_app.welcome}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.view.View.toString()' on a null object reference


Solutions on the web46518

Solution icon of stackoverflow
via Stack Overflow by prerika
, 1 year ago
Unable to start activity ComponentInfo{com.example.first_app/com.example.first_app.welcome}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.view.View.toString()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{****}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.loopj.android.http.AsyncHttpClient.addHeader(java.lang.String, java.lang.String)' on a null object reference

Solution icon of github
via GitHub by pawlowskim
, 4 months ago
Unable to start activity ComponentInfo{com.my_app/com.hokolinks.activity.HokoActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

Solution icon of github
via GitHub by simon1964
, 1 year ago
Unable to start activity ComponentInfo{net.osmand.plus/net.osmand.plus.download.DownloadActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{br.com.dinda.qa/br.com.dinda.views.activities.SplashActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{com.cloudamqp/com.cloudamqp.androidexample.ActivityHome}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.upload.ShareActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{net.kindows.chitchat/net.kindows.chitchat.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{net.kindows.chitchat/net.kindows.chitchat.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

Solution icon of github
Unable to start activity ComponentInfo{org.kore.kolabnotes.android/org.kore.kolabnotes.android.DetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.kore.kolab.notes.Notebook.getSummary()' on a null object reference

Stack trace

  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.first_app/com.example.first_app.welcome}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.view.View.toString()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

7 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
3 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
104 more bugmates