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

  1. 0

    Implement recyclerview inside a dialog on an activity containing another recyclerview

    Stack Overflow | 4 months ago | rohanagarwal94
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' on a null object reference
  2. 0

    android studio CoordinatorLayout & RecyclerView blank?

    Stack Overflow | 7 months ago | JanusJanus
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' on a null object reference
  3. 0

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

    GitHub | 9 months ago | galadril
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' on a null object reference

      at android.support.v7.widget.RecyclerView.computeVerticalScrollRange()
    2. Android v7
      RecyclerView.computeVerticalScrollRange
      1. android.support.v7.widget.RecyclerView.computeVerticalScrollRange(RecyclerView.java:1581)
      1 frame
    3. Android Platform
      View.draw
      1. android.view.View.onDrawScrollBars(View.java:13941)
      2. android.view.View.onDrawForeground(View.java:17680)
      3. android.view.View.draw(View.java:16212)
      3 frames
    4. Android v7
      RecyclerView.draw
      1. android.support.v7.widget.RecyclerView.draw(RecyclerView.java:3171)
      1 frame
    5. Android Platform
      ViewGroup.drawChild
      1. android.view.View.updateDisplayListIfDirty(View.java:15198)
      2. android.view.View.draw(View.java:15971)
      3. android.view.ViewGroup.drawChild(ViewGroup.java:3610)
      4. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400)
      5. android.view.View.draw(View.java:16204)
      6. android.view.View.updateDisplayListIfDirty(View.java:15198)
      7. android.view.View.draw(View.java:15971)
      8. android.view.ViewGroup.drawChild(ViewGroup.java:3610)
      8 frames
    6. android.support.design
      CoordinatorLayout.drawChild
      1. android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1074)
      1 frame
    7. Android Platform
      View.draw
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400)
      2. android.view.View.updateDisplayListIfDirty(View.java:15193)
      3. android.view.View.draw(View.java:15971)
      4. android.view.ViewGroup.drawChild(ViewGroup.java:3610)
      5. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400)
      6. android.view.View.updateDisplayListIfDirty(View.java:15193)
      7. android.view.View.draw(View.java:15971)
      8. android.view.ViewGroup.drawChild(ViewGroup.java:3610)
      9. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400)
      10. android.view.View.updateDisplayListIfDirty(View.java:15193)
      11. android.view.View.draw(View.java:15971)
      12. android.view.ViewGroup.drawChild(ViewGroup.java:3610)
      13. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400)
      14. android.view.View.updateDisplayListIfDirty(View.java:15193)
      15. android.view.View.draw(View.java:15971)
      16. android.view.ViewGroup.drawChild(ViewGroup.java:3610)
      17. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400)
      18. android.view.View.draw(View.java:16204)
      18 frames
    8. Android
      PhoneWindow$DecorView.draw
      1. com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
      1 frame
    9. Android Platform
      ActivityThread.main
      1. android.view.View.updateDisplayListIfDirty(View.java:15198)
      2. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:282)
      3. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:288)
      4. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:323)
      5. android.view.ViewRootImpl.draw(ViewRootImpl.java:2635)
      6. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2454)
      7. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2087)
      8. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1127)
      9. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6038)
      10. android.view.Choreographer$CallbackRecord.run(Choreographer.java:860)
      11. android.view.Choreographer.doCallbacks(Choreographer.java:672)
      12. android.view.Choreographer.doFrame(Choreographer.java:608)
      13. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846)
      14. android.os.Handler.handleCallback(Handler.java:739)
      15. android.os.Handler.dispatchMessage(Handler.java:95)
      16. android.os.Looper.loop(Looper.java:148)
      17. android.app.ActivityThread.main(ActivityThread.java:5438)
      17 frames
    10. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    11. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
      2 frames