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 Sachin Solanki
, 1 year ago
Unable to start activity ComponentInfo{com.example.sachin.myapplication/com.example.sachin.myapplication.Home}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.setDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener)' on a null object reference
via Stack Overflow by D4Developer
, 1 year ago
Unable to start activity ComponentInfo{scanlife.com.smartlabel_android/scanlife.com.smartlabel_android.navDrawer.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.setDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener)' on a null object reference
via Stack Overflow by Errol Niel
, 3 weeks ago
Unable to start activity ComponentInfo{com.example.example/com.example.example.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.addDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener)' on a null object reference
via GitHub by barbeau
, 1 month ago
Unable to start activity ComponentInfo{com.android.gpstest/com.android.gpstest.GpsTestActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.gpstest.NavigationDrawerFragment.setUp(int, android.support.v4.widget.DrawerLayout)' on a null object reference
via GitHub by dmaglio
, 2 days ago
Unable to start activity ComponentInfo : java.lang.NullPointerException: Attempt to invoke virtual method 'void com.synnapps.carouselview.CarouselViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
via Stack Overflow by Swanson
, 8 months ago
: com.example.robik.asd, PID: 27244 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.asd.asd/com.example.asd.asd.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.addDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sachin.myapplication/com.example.sachin.myapplication.Home}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.setDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)