java.lang.NullPointerException

GitHub | galadril | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Force close in my device trying a RecyclerView on a Fragment

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

    Recycler View: no addapter attached; skipping layout

    Stack Overflow | 2 years ago | Bogdan Daniel
    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:1654)
      1 frame
    3. Android Platform
      View.draw
      1. android.view.View.onDrawScrollBars(View.java:11439)
      2. android.view.View.draw(View.java:13718)
      2 frames
    4. Android v7
      RecyclerView.draw
      1. android.support.v7.widget.RecyclerView.draw(RecyclerView.java:3097)
      1 frame
    5. Android Platform
      ViewGroup.drawChild
      1. android.view.View.draw(View.java:13596)
      2. android.view.ViewGroup.drawChild(ViewGroup.java:2928)
      2 frames
    6. Android Support v4
      DrawerLayout.drawChild
      1. android.support.v4.widget.DrawerLayout.drawChild(DrawerLayout.java:1229)
      1 frame
    7. Android Platform
      ViewGroup.drawChild
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
      2. android.view.View.draw(View.java:13594)
      3. android.view.ViewGroup.drawChild(ViewGroup.java:2928)
      3 frames
    8. android.support.design
      CoordinatorLayout.drawChild
      1. android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1077)
      1 frame
    9. Android Platform
      View.draw
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
      2. android.view.View.draw(View.java:13594)
      3. android.view.ViewGroup.drawChild(ViewGroup.java:2928)
      4. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
      5. android.view.View.draw(View.java:13715)
      6. android.widget.FrameLayout.draw(FrameLayout.java:467)
      7. android.view.View.draw(View.java:13596)
      8. android.view.ViewGroup.drawChild(ViewGroup.java:2928)
      9. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
      10. android.view.View.draw(View.java:13715)
      10 frames
    10. Android v7
      ActionBarOverlayLayout.draw
      1. android.support.v7.widget.ActionBarOverlayLayout.draw(ActionBarOverlayLayout.java:442)
      1 frame
    11. Android Platform
      FrameLayout.draw
      1. android.view.View.draw(View.java:13596)
      2. android.view.ViewGroup.drawChild(ViewGroup.java:2928)
      3. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
      4. android.view.View.draw(View.java:13594)
      5. android.view.ViewGroup.drawChild(ViewGroup.java:2928)
      6. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
      7. android.view.View.draw(View.java:13594)
      8. android.view.ViewGroup.drawChild(ViewGroup.java:2928)
      9. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
      10. android.view.View.draw(View.java:13715)
      11. android.widget.FrameLayout.draw(FrameLayout.java:467)
      11 frames
    12. Android
      PhoneWindow$DecorView.draw
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2211)
      1 frame
    13. Android Platform
      ActivityThread.main
      1. android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2281)
      2. android.view.ViewRootImpl.draw(ViewRootImpl.java:2177)
      3. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2045)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1854)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:562)
      9. android.view.Choreographer.doFrame(Choreographer.java:532)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
      11. android.os.Handler.handleCallback(Handler.java:725)
      12. android.os.Handler.dispatchMessage(Handler.java:92)
      13. android.os.Looper.loop(Looper.java:137)
      14. android.app.ActivityThread.main(ActivityThread.java:5041)
      14 frames
    14. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    15. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
      2 frames
    16. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame