java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.LinearLayoutManager.scrollToPosition(int)' on a null object reference

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

    Demo展示中非常多崩溃

    GitHub | 10 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.LinearLayoutManager.scrollToPosition(int)' on a null object reference
  2. 0

    Demo展示中存在崩溃

    GitHub | 10 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.LinearLayoutManager.scrollToPosition(int)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void android.support.v7.widget.LinearLayoutManager.scrollToPosition(int)' on a null object reference

      at com.marshalchen.ultimaterecyclerview.demo.loadmoredemo.DebugLoadMoreActivity.onFireRefresh()
    2. com.marshalchen.ultimaterecyclerview
      BasicFunctions$3$1.run
      1. com.marshalchen.ultimaterecyclerview.demo.loadmoredemo.DebugLoadMoreActivity.onFireRefresh(DebugLoadMoreActivity.java:71)
      2. com.marshalchen.ultimaterecyclerview.demo.loadmoredemo.BasicFunctions$3$1.run(BasicFunctions.java:82)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:158)
      4. android.app.ActivityThread.main(ActivityThread.java:7224)
      4 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames
    6. XposedBridge
      XposedBridge.main
      1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:134)
      1 frame