java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.justforyou.bestnarutosongs/com.justforyou.bestnarutosongs.SongsListActivity}: 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 HARSHIL JAIN
, 1 year ago
Unable to instantiate activity ComponentInfo{com.justforyou.bestnarutosongs/com.justforyou.bestnarutosongs.SongsListActivity}: 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 Aulia Rifkyano
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.android.kalkulatron/com.example.android.kalkulatron.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 Den Neizvestniy
, 11 months ago
Unable to instantiate activity ComponentInfo{com.foxysoft.soundplayonclick/com.foxysoft.soundplayonclick.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 sagarika
, 10 months ago
Unable to instantiate activity ComponentInfo{com.example.android.cricketscore/com.example.android.cricketscore.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 Antonia Bravo
, 8 months ago
Unable to instantiate activity ComponentInfo{juanjoserodrigo.chilereclama/juanjoserodrigo.chilereclama.MasInfo}: 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 Adrià
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.android.mapamundi/com.example.android.mapamundi.PlayerNames}: 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.justforyou.bestnarutosongs/com.justforyou.bestnarutosongs.SongsListActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
at android.support.v7.app.AppCompatDelegateImplBase.(AppCompatDelegateImplBase.java:72)
at android.support.v7.app.AppCompatDelegateImplV7.(AppCompatDelegateImplV7.java:146)
at android.support.v7.app.AppCompatDelegateImplV11.(AppCompatDelegateImplV11.java:28)
at android.support.v7.app.AppCompatDelegateImplV14.(AppCompatDelegateImplV14.java:41)
at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:193)
at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:173)
at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:511)
at com.justforyou.bestnarutosongs.SongsListActivity.(SongsListActivity.java:23)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.Instrumentation.newActivity(Instrumentation.java:1071)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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