java.lang.NullPointerException: Attempt to read from field 'com.squareup.leakcanary.HeapDump com.squareup.leakcanary.internal.DisplayLeakActivity$Leak.heapDump' on a null object reference

GitHub | pyricau | 4 months ago
  1. 0

    GitHub comment 537#247892326

    GitHub | 4 months ago | pyricau
    java.lang.NullPointerException: Attempt to read from field 'com.squareup.leakcanary.HeapDump com.squareup.leakcanary.internal.DisplayLeakActivity$Leak.heapDump' on a null object reference
  2. 0
    Upgrade BetterPickers to 2.0.0 or later.
    via GitHub by bbbenja
  3. 0
    You can't use hide() or remove() or many things with NULL values, try checking for NULL before calling this methods.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Also, check if you're not using android.support.v4.app.FragmentTransaction with android.app.Fragment and vice-versa
  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 read from field 'com.squareup.leakcanary.HeapDump com.squareup.leakcanary.internal.DisplayLeakActivity$Leak.heapDump' on a null object reference

      at com.squareup.leakcanary.internal.DisplayLeakActivity.shareLeak()
    2. com.squareup.leakcanary
      DisplayLeakActivity$1.onMenuItemClick
      1. com.squareup.leakcanary.internal.DisplayLeakActivity.shareLeak(DisplayLeakActivity.java:203)
      2. com.squareup.leakcanary.internal.DisplayLeakActivity$1.onMenuItemClick(DisplayLeakActivity.java:166)
      2 frames
    3. Android
      MenuPopupHelper.onItemClick
      1. com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:147)
      2. com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904)
      3. com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894)
      4. com.android.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:186)
      4 frames
    4. Android Platform
      ActivityThread.main
      1. android.widget.AdapterView.performItemClick(AdapterView.java:305)
      2. android.widget.AbsListView.performItemClick(AbsListView.java:1146)
      3. android.widget.AbsListView.onKeyUp(AbsListView.java:3194)
      4. android.widget.ListView.commonKey(ListView.java:2300)
      5. android.widget.ListView.onKeyUp(ListView.java:2155)
      6. android.view.KeyEvent.dispatch(KeyEvent.java:2643)
      7. android.view.View.dispatchKeyEvent(View.java:8411)
      8. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1490)
      9. android.widget.ListView.dispatchKeyEvent(ListView.java:2130)
      10. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495)
      11. android.widget.PopupWindow$PopupViewContainer.dispatchKeyEvent(PopupWindow.java:1722)
      12. android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4020)
      13. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3982)
      14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      15. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
      16. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
      17. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)
      18. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
      19. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)
      20. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      21. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
      22. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
      23. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
      24. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      25. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
      26. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
      27. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)
      28. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
      29. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)
      30. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      31. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
      32. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
      33. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
      34. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      35. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
      36. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
      37. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)
      38. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
      39. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)
      40. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      41. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5807)
      42. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5781)
      43. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5752)
      44. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5897)
      45. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
      46. android.os.MessageQueue.nativePollOnce(MessageQueue.java)
      47. android.os.MessageQueue.next(MessageQueue.java:143)
      48. android.os.Looper.loop(Looper.java:122)
      49. android.app.ActivityThread.main(ActivityThread.java:5254)
      49 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames