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

  1. ,

    Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by Ihsan Hashem
, 1 year ago
Unable to start activity ComponentInfo{com.example.android.musicalstructure/com.example.android.musicalstructure.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference
via GitHub by rkdarst
, 1 year ago
Unable to start activity ComponentInfo{com.aware.phone/com.aware.phone.ui.Aware_QRCode}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference
via GitHub by Mygod
, 1 year ago
Unable to start activity ComponentInfo{com.github.shadowsocks/com.github.shadowsocks.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference
via GitHub by denzilferreira
, 1 year ago
Unable to start activity ComponentInfo{com.aware.phone/com.aware.phone.ui.Aware_QRCode}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference
via Stack Overflow by Ben Scmidth
, 2 years ago
Unable to start activity ComponentInfo{pasirgudangcouncilstate.infocenter/pasirgudangcouncilstate.infocenter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.PagerTabStrip.setTextColor(int)' on a null object reference
via GitHub by michaelrhughes
, 1 year ago
Unable to start activity ComponentInfo{my.package.name}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.v4.app.Fragment.getView()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.musicalstructure/com.example.android.musicalstructure.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)