java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

GitHub | 1fish2 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Tap a summary notification -> "The Blue Alliance Debug has stopped"

    GitHub | 5 months ago | 1fish2
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

      at io.nlopez.smartadapters.builders.DefaultBindableLayoutBuilder.viewType()
    2. io.nlopez.smartadapters
      RecyclerMultiAdapter.getItemViewType
      1. io.nlopez.smartadapters.builders.DefaultBindableLayoutBuilder.viewType(DefaultBindableLayoutBuilder.java:38)
      2. io.nlopez.smartadapters.adapters.RecyclerMultiAdapter.getItemViewType(RecyclerMultiAdapter.java:134)
      2 frames
    3. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4664)
      2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617)
      3. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1994)
      4. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390)
      5. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)
      6. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
      7. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
      8. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
      9. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283)
      9 frames
    4. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      3. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
      4. android.view.View.layout(View.java:15671)
      5. android.view.ViewGroup.layout(ViewGroup.java:5038)
      6. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
      7. android.view.View.layout(View.java:15671)
      8. android.view.ViewGroup.layout(ViewGroup.java:5038)
      9. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      10. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      11. android.view.View.layout(View.java:15671)
      12. android.view.ViewGroup.layout(ViewGroup.java:5038)
      13. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
      14. android.view.View.layout(View.java:15671)
      15. android.view.ViewGroup.layout(ViewGroup.java:5038)
      16. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      17. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      18. android.view.View.layout(View.java:15671)
      19. android.view.ViewGroup.layout(ViewGroup.java:5038)
      20. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
      21. android.view.View.layout(View.java:15671)
      22. android.view.ViewGroup.layout(ViewGroup.java:5038)
      22 frames
    5. Android Support v4
      DrawerLayout.onLayout
      1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1187)
      1 frame
    6. Android Platform
      ViewRootImpl.performLayout
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15671)
      6. android.view.ViewGroup.layout(ViewGroup.java:5038)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      10. android.view.View.layout(View.java:15671)
      11. android.view.ViewGroup.layout(ViewGroup.java:5038)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      14. android.view.View.layout(View.java:15671)
      15. android.view.ViewGroup.layout(ViewGroup.java:5038)
      16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      18. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      19. android.view.View.layout(View.java:15671)
      20. android.view.ViewGroup.layout(ViewGroup.java:5038)
      21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      22. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      23. android.view.View.layout(View.java:15671)
      24. android.view.ViewGroup.layout(ViewGroup.java:5038)
      25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2086)
      25 frames