java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.jdsjlzx.recyclerview.LuRecyclerViewAdapter.setScrollState(int)' on a null object reference

GitHub | douya40 | 4 months ago
  1. 0

    GitHub comment 32#248194806

    GitHub | 4 months ago | douya40
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.jdsjlzx.recyclerview.LuRecyclerViewAdapter.setScrollState(int)' on a null object reference
  2. 0

    GitHub comment 32#248203715

    GitHub | 4 months ago | douya40
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.jdsjlzx.recyclerview.LuRecyclerViewAdapter.setScrollState(int)' on a null object reference
  3. 0
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

    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 com.github.jdsjlzx.recyclerview.LuRecyclerViewAdapter.setScrollState(int)' on a null object reference

      at com.github.jdsjlzx.recyclerview.LuRecyclerView.onScrollStateChanged()
    2. com.github.jdsjlzx
      LuRecyclerView.onScrollStateChanged
      1. com.github.jdsjlzx.recyclerview.LuRecyclerView.onScrollStateChanged(LuRecyclerView.java:276)
      1 frame
    3. Android v7
      RecyclerView.onTouchEvent
      1. android.support.v7.widget.RecyclerView.dispatchOnScrollStateChanged(RecyclerView.java:4334)
      2. android.support.v7.widget.RecyclerView.setScrollState(RecyclerView.java:1290)
      3. android.support.v7.widget.RecyclerView$ViewFlinger.fling(RecyclerView.java:4517)
      4. android.support.v7.widget.RecyclerView.fling(RecyclerView.java:1945)
      5. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2725)
      5 frames
    4. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:9427)
      2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2660)
      3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2304)
      4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666)
      5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2318)
      5 frames