java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.tutorial.rizvish.settings/com.tutorial.rizvish.settings.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

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by BestGiraffeNigeria
, 1 year ago
Unable to instantiate activity ComponentInfo{com.tutorial.rizvish.settings/com.tutorial.rizvish.settings.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 Shahrukh Raza
, 1 year ago
Unable to instantiate activity ComponentInfo{com.shahrukhraza.app/com.shahrukhraza.app.otherAppActivity}: 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 Prq Hacker
, 1 year ago
Unable to instantiate activity ComponentInfo{net.saudi_dev.uae/net.saudi_dev.uae.Main2Activity}: 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 Nichole Bonsie
, 1 year ago
Unable to instantiate activity ComponentInfo{net.androidbootcamp.countrycabinrental/net.androidbootcamp.countrycabinrental.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 roohi
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.rv00485448.todo/com.example.rv00485448.todo.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 Abdelmasieh R. Azer
, 11 months ago
Unable to instantiate activity ComponentInfo{com.tech.techcoder/com.tech.techcoder.MainActivity}: 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.tutorial.rizvish.settings/com.tutorial.rizvish.settings.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:2548)

Users with the same issue

66 times, 3 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.