java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.lazerg.apptask/com.lazerg.apptask.tasks}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' 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

,
via Stack Overflow by CommonsWare

Try loading the text file into a WebView, then printing the contents of the WebView.

Solutions on the web

via Stack Overflow by Laziz Ergashev
, 1 year ago
Unable to instantiate activity ComponentInfo{com.lazerg.apptask/com.lazerg.apptask.tasks}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
via Stack Overflow by marshmallow
, 4 months ago
Unable to instantiate activity ComponentInfo{com.example.android.appName/com.example.android.appName.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
via Stack Overflow by Tim Sharpe
, 1 year ago
Unable to instantiate activity ComponentInfo{com.mylondonnews.knowbrockvilleuser.mybrockvillenews/com.mylondonnews.knowbrockvilleuser.mybrockvillenews.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
via Stack Overflow by Andrew Szoke
, 1 year ago
Unable to instantiate activity ComponentInfo{andyszoke.macrohub/andyszoke.macrohub.SetMacroManualActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via GitHub by Lineflyer
, 7 months ago
Unable to start activity ComponentInfo{cgeo.geocaching/cgeo.geocaching.settings.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File java.io.File.getCanonicalFile()' on a null object reference
via GitHub by galadril
, 1 year ago
Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium/nl.hnogames.domoticz.ServerSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int nl.hnogames.domoticz.Utils.SharedPrefUtil.getStartupScreenIndex()' on a null object reference
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.lazerg.apptask/com.lazerg.apptask.tasks}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2989)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3260)
at android.app.ActivityThread.access$1000(ActivityThread.java:218)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1734)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6934)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
212 more bugmates

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