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 | 7 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. 0

    GitHub comment 205#247811512

    GitHub | 7 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