java.lang.NullPointerException: Attempt to invoke interface method 'android.support.v7.widget.RecyclerView$ViewHolder com.mikepenz.fastadapter.IItem.getViewHolder(android.view.ViewGroup)' on a null object reference

GitHub | MFlisar | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 205#247811512

    GitHub | 6 months ago | MFlisar
    java.lang.NullPointerException: Attempt to invoke interface method 'android.support.v7.widget.RecyclerView$ViewHolder com.mikepenz.fastadapter.IItem.getViewHolder(android.view.ViewGroup)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'android.support.v7.widget.RecyclerView$ViewHolder com.mikepenz.fastadapter.IItem.getViewHolder(android.view.ViewGroup)' on a null object reference

      at com.mikepenz.fastadapter.FastAdapter$OnCreateViewHolderListenerImpl.onPreCreateViewHolder()
    2. com.mikepenz.fastadapter
      FastAdapter.onCreateViewHolder
      1. com.mikepenz.fastadapter.FastAdapter$OnCreateViewHolderListenerImpl.onPreCreateViewHolder(FastAdapter.java:1690)
      2. com.mikepenz.fastadapter.FastAdapter.onCreateViewHolder(FastAdapter.java:396)
      2 frames
    3. Android v7
      RecyclerView.onTouchEvent
      1. android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5836)
      2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5060)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4970)
      4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
      5. android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:541)
      6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
      7. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1193)
      8. android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1043)
      9. android.support.v7.widget.GridLayoutManager.scrollVerticallyBy(GridLayoutManager.java:381)
      10. android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1596)
      11. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2704)
      11 frames