java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.util.SparseArray.get(int)' on a null object reference

GitHub | githubdoramon | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Nullpointer on @EActivity

    GitHub | 8 months ago | githubdoramon
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.util.SparseArray.get(int)' on a null object reference
  2. 0

    NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.util.SparseArray.get(int)' on a null object reference

    Stack Overflow | 1 month ago | Hoang Duc Tuan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bookmark.money/com.zoostudio.moneylover.ui.ActivityBase}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.util.SparseArray.get(int)' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    2 unregistered visitors
    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

      Attempt to invoke virtual method 'java.lang.Object android.util.SparseArray.get(int)' on a null object reference

      at android.view.View.dispatchRestoreInstanceState()
    2. Android Platform
      View.restoreHierarchyState
      1. android.view.View.dispatchRestoreInstanceState(View.java:14970)
      2. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3188)
      3. android.view.View.restoreHierarchyState(View.java:14953)
      3 frames
    3. android.support.design
      NavigationMenuPresenter.onRestoreInstanceState
      1. android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.restoreInstanceState(SourceFile:585)
      2. android.support.design.internal.NavigationMenuPresenter.onRestoreInstanceState(SourceFile:180)
      2 frames
    4. android.support.v7
      MenuBuilder.restorePresenterStates
      1. android.support.v7.view.menu.MenuBuilder.dispatchRestoreInstanceState(SourceFile:348)
      2. android.support.v7.view.menu.MenuBuilder.restorePresenterStates(SourceFile:360)
      2 frames
    5. android.support.design
      NavigationView.onRestoreInstanceState
      1. android.support.design.widget.NavigationView.onRestoreInstanceState(SourceFile:197)
      1 frame
    6. Android Platform
      View.restoreHierarchyState
      1. android.view.View.dispatchRestoreInstanceState(View.java:14975)
      2. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3188)
      3. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3194)
      4. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3194)
      5. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3194)
      6. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3194)
      7. android.view.View.restoreHierarchyState(View.java:14953)
      7 frames
    7. Android
      PhoneWindow.restoreHierarchyState
      1. com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2294)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.app.Activity.onRestoreInstanceState(Activity.java:1140)
      2. android.app.Activity.performRestoreInstanceState(Activity.java:1085)
      3. android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1176)
      4. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3098)
      5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3224)
      6. android.app.ActivityThread.access$1000(ActivityThread.java:198)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1682)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:145)
      10. android.app.ActivityThread.main(ActivityThread.java:6843)
      10 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    10. Android
      ZygoteInit$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
      1 frame