java.lang.RuntimeException: Unable to start activity ComponentInfo{com.oxinc.android.word/com.oxinc.android.word.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(int)' 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 Fidel_Willis
, 1 year ago
Unable to start activity ComponentInfo{com.oxinc.android.word/com.oxinc.android.word.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(int)' on a null object reference
via Stack Overflow by ama989
, 1 year ago
Unable to start activity ComponentInfo{hadirfinalversion.amjad.hadirfinal/hadirfinalversion.amjad.hadirfinal.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via Stack Overflow by Lars Dormans
, 5 months ago
Unable to start activity ComponentInfo{me.creepercow.moeder/me.creepercow.moeder.ResultActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via Stack Overflow by Used
, 3 months ago
Unable to start activity ComponentInfo{com.carte.alex.test3/com.carte.alex.test3.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CheckedTextView.setCompoundDrawablesWithIntrinsicBounds(int, int, int, int)' on a null object reference
via Stack Overflow by Marco
, 1 year ago
Unable to start activity ComponentInfo{com.application.andreamarconicola.progettoandroidam/com.application.andreamarconicola.progettoandroidam.Dashboard}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via Stack Overflow by OldBeginner
, 1 year ago
Unable to start activity ComponentInfo{com.sample.testost/com.appsworthyourtime.testost.Page6}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.oxinc.android.word/com.oxinc.android.word.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(int)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 months ago
9 times, 11 months ago
429 times, 1 year ago
6 times, 4 months ago
184 times, 10 months ago
109 more bugmates

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