java.lang.NullPointerException

Stack Overflow | Cyberlander | 4 months ago
  1. 0

    Fatal Exception: java.lang.NullPointerException while using ViewPager

    Stack Overflow | 7 months ago | user669231
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Handler android.support.v4.app.FragmentHostCallback.getHandler()' on a null object reference
  2. 0

    NullPointerException on setMenuVisibility

    Stack Overflow | 7 months ago | MAOL
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.app.Fragment.setMenuVisibility(boolean)' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    10 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

      No message provided

      at android.support.v4.app.BackStackRecord.doAddOp()
    2. Android Support v4
      ViewPager.onMeasure
      1. android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:418)
      2. android.support.v4.app.BackStackRecord.add(BackStackRecord.java:413)
      3. android.support.v4.app.FragmentPagerAdapter.instantiateItem(FragmentPagerAdapter.java:103)
      4. android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1003)
      5. android.support.v4.view.ViewPager.populate(ViewPager.java:1151)
      6. android.support.v4.view.ViewPager.populate(ViewPager.java:1085)
      7. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1611)
      7 frames
    3. Android Platform
      ViewGroup.measureChildWithMargins
      1. android.view.View.measure(View.java:17331)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)
      2 frames
    4. android.support.design
      CoordinatorLayout.onMeasure
      1. android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:671)
      2. android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90)
      3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1319)
      4. android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:736)
      4 frames
    5. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:17331)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
      3 frames
    6. Android v7
      ContentFrameLayout.onMeasure
      1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
      1 frame
    7. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:17331)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
      6. android.view.View.measure(View.java:17331)
      7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)
      8. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
      9. android.view.View.measure(View.java:17331)
      10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)
      11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)
      12. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
      13. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
      14. android.view.View.measure(View.java:17331)
      15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5376)
      16. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
      16 frames
    8. Android
      PhoneWindow$DecorView.onMeasure
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2548)
      1 frame
    9. Android Platform
      ActivityThread.main
      1. android.view.View.measure(View.java:17331)
      2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2279)
      3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1393)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1592)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1251)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6540)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:813)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:613)
      9. android.view.Choreographer.doFrame(Choreographer.java:583)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:799)
      11. android.os.Handler.handleCallback(Handler.java:733)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:146)
      14. android.app.ActivityThread.main(ActivityThread.java:5593)
      14 frames
    10. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    11. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
      2 frames
    12. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame