java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getTop()' on a null object reference

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

    【CrashLog】 WeiSwift 2016-08-21 17:52:41:04

    GitHub | 6 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getTop()' on a null object reference
  2. 0

    【CrashLog】 WeiSwift 2016-08-10 15:52:14:16

    GitHub | 6 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getTop()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int android.view.View.getTop()' on a null object reference

      at com.wenming.weiswift.ui.login.fragment.home.userdetail.UserActivity$9.onScrollStateChanged()
    2. com.wenming.weiswift
      UserActivity$9.onScrollStateChanged
      1. com.wenming.weiswift.ui.login.fragment.home.userdetail.UserActivity$9.onScrollStateChanged(UserActivity.java:283)
      1 frame
    3. Android v7
      RecyclerView.onTouchEvent
      1. android.support.v7.widget.RecyclerView.dispatchOnScrollStateChanged(RecyclerView.java:3972)
      2. android.support.v7.widget.RecyclerView.setScrollState(RecyclerView.java:1194)
      3. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2453)
      3 frames
    4. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:8968)
      2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2698)
      3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2410)
      4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)
      5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)
      6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)
      7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)
      8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)
      9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)
      10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)
      11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)
      12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)
      13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)
      14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)
      15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)
      15 frames
    5. Android
      PhoneWindow.superDispatchTouchEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2559)
      2. com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1767)
      2 frames
    6. Android Platform
      Activity.dispatchTouchEvent
      1. android.app.Activity.dispatchTouchEvent(Activity.java:2866)
      1 frame
    7. Android
      PhoneWindow$DecorView.dispatchTouchEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2520)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.view.View.dispatchPointerEvent(View.java:9173)
      2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4706)
      3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4544)
      4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068)
      5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4121)
      6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4087)
      7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4201)
      8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4095)
      9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4258)
      10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068)
      11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4121)
      12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4087)
      13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4095)
      14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068)
      15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6565)
      16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6455)
      17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6426)
      18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6655)
      19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
      20. android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
      21. android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
      22. android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6626)
      23. android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6678)
      24. android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
      25. android.view.Choreographer.doCallbacks(Choreographer.java:590)
      26. android.view.Choreographer.doFrame(Choreographer.java:558)
      27. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
      28. android.os.Handler.handleCallback(Handler.java:739)
      29. android.os.Handler.dispatchMessage(Handler.java:95)
      30. android.os.Looper.loop(Looper.java:145)
      31. android.app.ActivityThread.main(ActivityThread.java:5942)
      31 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
      2 frames