java.lang.RuntimeException: Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' 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

Solutions on the web

via Stack Overflow by Karanvir1
, 6 months ago
Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
via GitHub by navneetboghani
, 2 months ago
Unable to start activity ComponentInfo{com.developer.odoc/com.developer.odoc.register.SignUpPhase3Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
via Stack Overflow by Chris.P
, 8 months ago
Unable to start activity ComponentInfo{com.example.a0600747.chrispagan/com.example.a0600747.chrispagan.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
via GitHub by adelq
, 11 months ago
Unable to start activity ComponentInfo{com.pennapps.labs.pennmobile/com.pennapps.labs.pennmobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.pennapps.labs.pennmobile.classes.Venue.allHours()' on a null object reference
via GitHub by ethan92429
, 11 months ago
Unable to start activity ComponentInfo{org.post.aguaclara.postdose/org.post.aguaclara.postdose.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via GitHub by Lenndev
, 2 months ago
Unable to start activity ComponentInfo{net.myapp.app/net.myapp.app.MyAppActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.ViewGroup.getPaddingLeft()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
at com.karanvir.ccc.MainActivity.initializeUi(MainActivity.java:114)
at com.karanvir.ccc.MainActivity.onCreate(MainActivity.java:64)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
at android.app.ActivityThread.access$1100(ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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