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 tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web45977

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 kwonye
, 1 year ago
Unable to destroy activity {org.wordpress.android/org.wordpress.android.ui.prefs.BlogPreferencesActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference

Solution icon of github
Unable to destroy activity {test.demo.gyniu.v2ex/test.demo.gyniu.v2ex.Activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

Solution icon of github
Unable to destroy activity {com.ultimatefanlive.ultimatefanandroid/com.mixpanel.android.surveys.SurveyActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.mixpanel.android.mpmetrics.MixpanelAPI$People.append(java.lang.String, java.lang.Object)' on a null object reference

Solution icon of github
Unable to destroy activity {com.myapp/com.mixpanel.android.surveys.SurveyActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.mixpanel.android.mpmetrics.i$c.b(java.lang.String, java.lang.Object)' on a null object reference

Solution icon of github
via GitHub by kwonye
, 1 year ago
Unable to destroy activity {org.wordpress.android/org.wordpress.android.ui.prefs.BlogPreferencesActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.wordpress.android.ui.prefs.SiteSettingsInterface.saveSettings()' on a null object reference

Solution icon of github
Unable to destroy activity {com.bitdubai.fermat/com.bitdubai.android_core.app.SubAppActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.view.View.getBackground()' on a null object reference

Solution icon of github
Unable to destroy activity {com.tencent.mm/com.tencent.mm.ui.LauncherUI}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.ComponentName.getShortClassName()' on a null object reference

Solution icon of github
via GitHub by ccrama
, 1 year ago
Unable to destroy activity {me.ccrama.redditslide/me.ccrama.redditslide.Activities.CommentsScreen}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.util.ArrayList.get(int)' 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

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

3 times, 3 days ago
9 times, 1 month ago
37 times, 1 month ago
376 times, 1 month ago
9 times, 2 months ago
170 more bugmates