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


Samebug tips

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


,
via Stack Overflow by CommonsWare

Solutions on the web

Solution icon of github
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

Solution icon of github
via GitHub by liaxim
, 4 weeks 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

Solution icon of github
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

Solution icon of github
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

Solution icon of github
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

Solution icon of stackoverflow
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

Solution icon of github
Unable to stop activity {ie.flipdish.the9thlough/ie.flipdish.flipdish_android.SplashActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context io.intercom.android.sdk.Bridge.context()' on a null object reference

Solution icon of github
Unable to destroy activity {com.luga/com.luga.MainActivity}: java.lang.NullPointerException: Attempt to write to field 'com.onesignal.OneSignal$NotificationOpenedHandler com.onesignal.OneSignal$Builder.mNotificationOpenedHandler' on a null object reference

Solution icon of github
Unable to destroy activity {com.application/com.application.MainActivity}: java.lang.NullPointerException: Attempt to write to field 'com.onesignal.OneSignal$NotificationOpenedHandler com.onesignal.OneSignal$Builder.mNotificationOpenedHandler' on a null object reference

Solution icon of github
via GitHub by ccrama
, 10 months ago
Unable to destroy activity {me.ccrama.redditslide/me.ccrama.redditslide.Activities.CommentsScreen}: java.lang.IndexOutOfBoundsException: Invalid index 18, size is 0

Stack trace

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 java.lang.reflect.Method.invoke(Method.java)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 hours ago
96 times, 1 week ago
295 times, 3 weeks ago
9 times, 3 months ago
37 times, 3 months ago
172 more bugmates