java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.eliott.proto_onrop/com.example.eliott.proto_onrop.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference


Solutions on the web

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.eliott.proto_onrop/com.example.eliott.proto_onrop.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.rao.myapplication/com.example.rao.myapplication.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Animesh Jena
, 1 year ago
Unable to start activity ComponentInfo{com.archerpenny.myapplication/com.archerpenny.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{course.labs.activitylab/course.labs.activitylab.ActivityOne}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by GermanMike
, 10 months ago
Unable to start activity ComponentInfo{com.example.michael.counter/com.example.michael.counter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{kr.co.iosystem.blackeyeonandroid/kr.co.iosystem.blackeyeonandroid.BlackEyeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Jan
, 7 months ago
Unable to start activity ComponentInfo{com.example.rok.myapplication/com.example.rok.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Sindi B
, 4 months ago
Unable to start activity ComponentInfo{com.example.user.appsightseeing/com.example.user.appsightseeing.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setTitle(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Rémy
, 3 months ago
Unable to start activity ComponentInfo{fr.clementineferreol.myteamrocket/fr.clementineferreol.myteamrocket.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by J.Shah
, 5 days ago
Unable to start activity ComponentInfo{com.example.jigar.tipcalculator/com.example.jigar.tipcalculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.eliott.proto_onrop/com.example.eliott.proto_onrop.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)

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

Samebug visitor profile picture
Unknown user
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
16 times, 9 months ago
6 times, 1 year ago
12 times, 1 year ago
109 more bugmates