java.lang.NullPointerException: Attempt to invoke virtual method 'void org.lucasr.twowayview.widget.ItemEntries.setAdapterSize(int)' on a null object reference

GitHub | kimzz | 6 months ago
  1. 0

    void org.lucasr.twowayview.widget.ItemEntries.setAdapterSize(int)

    GitHub | 6 months ago | kimzz
    java.lang.NullPointerException: Attempt to invoke virtual method 'void org.lucasr.twowayview.widget.ItemEntries.setAdapterSize(int)' on a null object reference
  2. 0
    Initialize the variable before calling a method on it.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    Use 'dialog' to access views from custom_layout layout.
  5. 0
    The resource was accessed after it was dismissed.

    1 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 'void org.lucasr.twowayview.widget.ItemEntries.setAdapterSize(int)' on a null object reference

      at org.lucasr.twowayview.widget.BaseLayoutManager.onLayoutChildren()
    2. TwoWayView Layouts Library
      BaseLayoutManager.onLayoutChildren
      1. org.lucasr.twowayview.widget.BaseLayoutManager.onLayoutChildren(BaseLayoutManager.java:355)
      1 frame
    3. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
      2. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
      3. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283)
      3 frames
    4. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:16761)
      2. android.view.ViewGroup.layout(ViewGroup.java:5333)
      3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1702)
      4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1556)
      5. android.widget.LinearLayout.onLayout(LinearLayout.java:1465)
      6. android.view.View.layout(View.java:16761)
      7. android.view.ViewGroup.layout(ViewGroup.java:5333)
      8. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      9. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      10. android.view.View.layout(View.java:16761)
      11. android.view.ViewGroup.layout(ViewGroup.java:5333)
      12. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077)
      13. android.view.View.layout(View.java:16761)
      14. android.view.ViewGroup.layout(ViewGroup.java:5333)
      14 frames
    5. Android Support v4
      DrawerLayout.onLayout
      1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1187)
      1 frame
    6. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:16761)
      2. android.view.ViewGroup.layout(ViewGroup.java:5333)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      5. android.view.View.layout(View.java:16761)
      6. android.view.ViewGroup.layout(ViewGroup.java:5333)
      6 frames
    7. Android v7
      ActionBarOverlayLayout.onLayout
      1. android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:435)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:16761)
      2. android.view.ViewGroup.layout(ViewGroup.java:5333)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      5. android.view.View.layout(View.java:16761)
      6. android.view.ViewGroup.layout(ViewGroup.java:5333)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1702)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1556)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1465)
      10. android.view.View.layout(View.java:16761)
      11. android.view.ViewGroup.layout(ViewGroup.java:5333)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      14. android.view.View.layout(View.java:16761)
      15. android.view.ViewGroup.layout(ViewGroup.java:5333)
      16. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2381)
      17. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2090)
      18. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1239)
      19. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6752)
      20. android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
      21. android.view.Choreographer.doCallbacks(Choreographer.java:590)
      22. android.view.Choreographer.doFrame(Choreographer.java:560)
      23. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
      24. android.os.Handler.handleCallback(Handler.java:739)
      25. android.os.Handler.dispatchMessage(Handler.java:95)
      26. android.os.Looper.loop(Looper.java:145)
      27. android.app.ActivityThread.main(ActivityThread.java:6145)
      27 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
      2 frames