java.lang.NullPointerException

google.com | 4 months ago
  1. 0

    NullPointerException when expanding some/most items using support library v23.2.0

    GitHub | 9 months ago | jhavatar
    java.lang.NullPointerException: Attempt to read from field 'int android.support.v7.widget.RecyclerView$ItemAnimator$ItemHolderInfo.left' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

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.v7.widget.SimpleItemAnimator.animateDisappearance()
  2. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.SimpleItemAnimator.animateDisappearance(SimpleItemAnimator.java:78)
    2. android.support.v7.widget.RecyclerView.animateDisappearance(RecyclerView.java:3246)
    3. android.support.v7.widget.RecyclerView.access$700(RecyclerView.java:147)
    4. android.support.v7.widget.RecyclerView$4.processDisappeared(RecyclerView.java:422)
    5. android.support.v7.widget.ViewInfoStore.process(ViewInfoStore.java:231)
    6. android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3086)
    7. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2914)
    8. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3277)
    8 frames
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:14845)
    2. android.view.ViewGroup.layout(ViewGroup.java:4631)
    3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
    4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
    5. android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
    6. android.view.View.layout(View.java:14845)
    7. android.view.ViewGroup.layout(ViewGroup.java:4631)
    8. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    9. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    10. android.view.View.layout(View.java:14845)
    11. android.view.ViewGroup.layout(ViewGroup.java:4631)
    12. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
    13. android.view.View.layout(View.java:14845)
    14. android.view.ViewGroup.layout(ViewGroup.java:4631)
    14 frames
  4. android.support.design
    CoordinatorLayout.onLayout
    1. android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:122)
    2. android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
    3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1139)
    4. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:810)
    4 frames
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:14845)
    2. android.view.ViewGroup.layout(ViewGroup.java:4631)
    2 frames
  6. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1183)
    1 frame
  7. Android Platform
    Choreographer.doCallbacks
    1. android.view.View.layout(View.java:14845)
    2. android.view.ViewGroup.layout(ViewGroup.java:4631)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    5. android.view.View.layout(View.java:14845)
    6. android.view.ViewGroup.layout(ViewGroup.java:4631)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
    10. android.view.View.layout(View.java:14845)
    11. android.view.ViewGroup.layout(ViewGroup.java:4631)
    12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    13. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    14. android.view.View.layout(View.java:14845)
    15. android.view.ViewGroup.layout(ViewGroup.java:4631)
    16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
    17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
    18. android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
    19. android.view.View.layout(View.java:14845)
    20. android.view.ViewGroup.layout(ViewGroup.java:4631)
    21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    22. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    23. android.view.View.layout(View.java:14845)
    24. android.view.ViewGroup.layout(ViewGroup.java:4631)
    25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2026)
    26. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1783)
    27. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1039)
    28. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5648)
    29. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    30. android.view.Choreographer.doCallbacks(Choreographer.java:574)
    30 frames