java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sujithsizon.lzlogin3/com.sujithsizon.lzlogin3.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by Sujith Sizon
, 10 months ago
Unable to start activity ComponentInfo{com.sujithsizon.lzlogin3/com.sujithsizon.lzlogin3.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by Kyle Ransom
, 1 year ago
Unable to start activity ComponentInfo{com.uplymedia.cougarhookupsplus/com.uplymedia.cougarhookupsplus.SettingMatch}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by Jason
, 11 months ago
Unable to start activity ComponentInfo{com.sp.ez_mart/com.sp.ez_mart.navigation_front}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via Stack Overflow by Kapparino
, 1 year ago
Unable to start activity ComponentInfo{MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference
via GitHub by Traumhaftt
, 7 months ago
Unable to start activity ComponentInfo{MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
via Stack Overflow by GH0ST
, 2 months ago
Unable to start activity ComponentInfo{**hidden**.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.os.Bundle.getDouble(java.lang.String)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sujithsizon.lzlogin3/com.sujithsizon.lzlogin3.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

Once, 1 month ago
33 times, 2 months ago
8 times, 2 months ago
468 times, 3 months ago
65 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.