java.lang.NullPointerException

  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    How to show Snackbar message in activity?

    Stack Overflow | 4 months ago | Raghav
    java.lang.NullPointerException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at android.support.design.widget.Snackbar.<init>()
  2. android.support.design
    Snackbar.make
    1. android.support.design.widget.Snackbar.<init>(Snackbar.java:183)
    2. android.support.design.widget.Snackbar.make(Snackbar.java:215)
    2 frames
  3. ca.davesautoservice.davesautoservice
    MainActivity.onNavigationItemSelected
    1. ca.davesautoservice.davesautoservice.MainActivity.onNavigationItemSelected(MainActivity.java:106)
    1 frame
  4. android.support.design
    NavigationView$1.onMenuItemSelected
    1. android.support.design.widget.NavigationView$1.onMenuItemSelected(NavigationView.java:151)
    1 frame
  5. android.support.v7
    MenuBuilder.performItemAction
    1. android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)
    2. android.support.v7.view.menu.SubMenuBuilder.dispatchMenuItemSelected(SubMenuBuilder.java:84)
    3. android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
    4. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)
    4 frames
  6. android.support.design
    NavigationMenuPresenter$1.onClick
    1. android.support.design.internal.NavigationMenuPresenter$1.onClick(NavigationMenuPresenter.java:318)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4463)
    2. android.view.View$PerformClick.run(View.java:18770)
    3. android.os.Handler.handleCallback(Handler.java:808)
    4. android.os.Handler.dispatchMessage(Handler.java:103)
    5. android.os.Looper.loop(Looper.java:193)
    6. android.app.ActivityThread.main(ActivityThread.java:5333)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame