java.lang.NullPointerException

  1. 0

    RecyclerView crashing on Android 6

    Stack Overflow | 1 year ago | guuilp
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    RecyclerView crashing on Android 6

    ezeenow.com | 11 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' on a null object reference

    5 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.v7.widget.RecyclerView.computeVerticalScrollRange()
    2. Android v7
      RecyclerView.computeVerticalScrollRange
      1. android.support.v7.widget.RecyclerView.computeVerticalScrollRange(RecyclerView.java:1216)
      1 frame
    3. Android Platform
      View.draw
      1. android.view.View.onDrawScrollBars(View.java:12943)
      2. android.view.View.draw(View.java:15237)
      2 frames
    4. Android v7
      RecyclerView.draw
      1. android.support.v7.widget.RecyclerView.draw(RecyclerView.java:2440)
      1 frame
    5. Android Platform
      ViewGroup.drawChild
      1. android.view.View.draw(View.java:15140)
      2. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      3. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:53)
      4. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      5. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      6. android.view.View.draw(View.java:15138)
      7. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      8. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:53)
      9. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      10. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      11. android.view.View.draw(View.java:15234)
      12. android.view.View.draw(View.java:15140)
      13. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      14. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:53)
      15. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      15 frames
    6. Android Support v4
      DrawerLayout.drawChild
      1. android.support.v4.widget.DrawerLayout.drawChild(DrawerLayout.java:1086)
      1 frame
    7. Android Platform
      View.draw
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      2. android.view.View.draw(View.java:15138)
      3. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      4. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:53)
      5. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      6. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      7. android.view.View.draw(View.java:15138)
      8. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      9. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:53)
      10. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      11. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      12. android.view.View.draw(View.java:15234)
      13. android.view.View.draw(View.java:15140)
      14. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      15. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:53)
      16. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      17. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      18. android.view.View.draw(View.java:15234)
      18 frames