java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sbvamsi.intentexample/com.sbvamsi.intentexample.MainActivity}: 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

Solutions on the web

via Stack Overflow by Vamsi
, 1 year ago
Unable to instantiate activity ComponentInfo{com.sbvamsi.intentexample/com.sbvamsi.intentexample.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 madmax
, 1 year ago
Unable to instantiate activity ComponentInfo{com.bisesifreelance.maxbisesi.tic_tac_toe/com.bisesifreelance.maxbisesi.tic_tac_toe.GamePlayActivity}: 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 timburnt
, 8 months ago
Unable to instantiate activity ComponentInfo{nsa.com.museum/nsa.com.museum.HistoryActivity}: 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 SH7890
, 7 months ago
Unable to instantiate activity ComponentInfo{com.example.horseauction/com.example.horseauction.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 Nicola Galluccio
, 5 months ago
Unable to instantiate activity ComponentInfo{com.example.nicola.cazzonnonfunziona/com.example.nicola.cazzonnonfunziona.Tria}: 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 Luiz Adolfo
, 4 months ago
Unable to instantiate activity ComponentInfo{com.chest.chestbrasil.chest/com.chest.chestbrasil.chest.LoginScreen}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sbvamsi.intentexample/com.sbvamsi.intentexample.MainActivity}: 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:2337)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
280 times, 1 year ago
9 times, 11 months ago
8 times, 1 month ago
16 times, 10 months ago
109 more bugmates

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