java.lang.RuntimeException: Unable to destroy activity {MyApplication}: java.lang.NullPointerException: Attempt to invoke interface method 'com.liulishuo.filedownloader.BaseDownloadTask com.liulishuo.filedownloader.BaseDownloadTask$IRunningTask.getOrigin()' on a null object reference

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

Samebug tips

,
via Stack Overflow by CommonsWare

Try loading the text file into a WebView, then printing the contents of the WebView.

Solutions on the web

via GitHub by danielnazareth
, 10 months ago
Unable to destroy activity {MyApplication}: java.lang.NullPointerException: Attempt to invoke interface method 'com.liulishuo.filedownloader.BaseDownloadTask com.liulishuo.filedownloader.BaseDownloadTask$IRunningTask.getOrigin()' on a null object reference
via GitHub by liaxim
, 2 months ago
Unable to destroy activity {org.gearvrf.sample.gvrjavascript/org.gearvrf.sample.gvrjavascript.GearVRJavascriptActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void javax.script.Bindings.clear()' on a null object reference
via GitHub by Blaisorblade
, 1 year ago
Unable to destroy activity {com.kamron.pogoiv/com.kamron.pogoiv.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.googlecode.tesseract.android.TessBaseAPI.stop()' on a null object reference
via GitHub by oneenam
, 1 year ago
Unable to destroy activity {it.h3g.sport.diretta.serieaeb/tv.teads.sdk.adContainer.activity.FullscreenActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean tv.teads.sdk.adContent.views.AnimatedAdContentView.isAttached()' on a null object reference
via GitHub by avishayil
, 1 year ago
Unable to destroy activity {com.zuznow.geektime/com.zuznow.geektime.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
via Stack Overflow by DIWAKAR VISHWAS
, 3 months ago
Unable to stop activity {com.example.diwakarkumar.chatit/com.example.diwakarkumar.chatit.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.firebase.database.DatabaseReference com.google.firebase.database.DatabaseReference.child(java.lang.String)' on a null object reference
java.lang.RuntimeException: Unable to destroy activity {MyApplication}: java.lang.NullPointerException: Attempt to invoke interface method 'com.liulishuo.filedownloader.BaseDownloadTask com.liulishuo.filedownloader.BaseDownloadTask$IRunningTask.getOrigin()' on a null object reference
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5066)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5089)
at android.app.ActivityThread.access$1700(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1854)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

40 times, 3 months ago
5 times, 6 months ago
32 times, 11 months ago
13 times, 1 year ago
21 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.