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

Samebug tips

,

Create an empty public constructor in your code.

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 Shanu
, 2 weeks ago
Unable to start activity ComponentInfo{com.calendar.ss.calendar/com.calendar.ss.calendar.Home}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(int)' on a null object reference
via Stack Overflow by HIREN DIXIT
, 1 month ago
Unable to start activity ComponentInfo{}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.Toolbar.setNavigationIcon(int)' on a null object reference
via Stack Overflow by ama989
, 2 years 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
, 7 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 ghost
, 2 months ago
Unable to start activity ComponentInfo{com.strobertchs.mathgame/com.strobertchs.mathgame.GameScreen}: 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

66 times, 4 weeks ago
Once, 2 months ago
33 times, 3 months ago
8 times, 3 months ago
468 times, 4 months ago

Write tip

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