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 Chinmaya KN
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.india.chemistry/com.example.india.chemistry.FifthActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by natiqjavid
, 9 months ago
Unable to instantiate activity ComponentInfo{com.write.urdu.poetry.urdutexteditor/com.write.urdu.poetry.urdutexteditor.MenuClass}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
via GitHub by antong
, 1 month ago
Unable to instantiate activity ComponentInfo{org.beiwe.app/org.beiwe.app.survey.AudioRecorderActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getString(int)' on a null object reference
via Stack Overflow by Mark Witt
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.markwitt.schul_app/com.example.markwitt.schul_app.Rechner}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
via GitHub by barbeau
, 1 year ago
Unable to start activity ComponentInfo{com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.onebusaway.android.ui.AlertList.getCount()' on a null object reference
via GitHub by Aeonitis
, 1 year ago
Unable to start activity ComponentInfo{com.lh.andx/com.lh.andx.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toUpperCase()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference	at android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:107)	at com.example.india.chemistry.FifthActivity.(FifthActivity.java:21)	at java.lang.Class.newInstance(Native Method)	at android.app.Instrumentation.newActivity(Instrumentation.java:1085)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2410)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2569)	at android.app.ActivityThread.access$900(ActivityThread.java:150)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1399)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:168)	at android.app.ActivityThread.main(ActivityThread.java:5885)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)