Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by pyricau
, 1 year ago
Attempt to read from field 'com.squareup.leakcanary.HeapDump com.squareup.leakcanary.internal.DisplayLeakActivity$Leak.heapDump' on a null object reference
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(DisplayLeakActivity.java:203)	at com.squareup.leakcanary.internal.DisplayLeakActivity$1.onMenuItemClick(DisplayLeakActivity.java:166)	at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:147)	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904)	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894)	at com.android.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:186)	at android.widget.AdapterView.performItemClick(AdapterView.java:305)	at android.widget.AbsListView.performItemClick(AbsListView.java:1146)	at android.widget.AbsListView.onKeyUp(AbsListView.java:3194)	at android.widget.ListView.commonKey(ListView.java:2300)	at android.widget.ListView.onKeyUp(ListView.java:2155)	at android.view.KeyEvent.dispatch(KeyEvent.java:2643)	at android.view.View.dispatchKeyEvent(View.java:8411)	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1490)	at android.widget.ListView.dispatchKeyEvent(ListView.java:2130)	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495)	at android.widget.PopupWindow$PopupViewContainer.dispatchKeyEvent(PopupWindow.java:1722)	at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4020)	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3982)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5807)	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5781)	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5752)	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5897)	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)	at android.os.MessageQueue.nativePollOnce(MessageQueue.java)	at android.os.MessageQueue.next(MessageQueue.java:143)	at android.os.Looper.loop(Looper.java:122)	at android.app.ActivityThread.main(ActivityThread.java:5254)	at java.lang.reflect.Method.invoke(Method.java)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)