java.lang.NullPointerException: Attempt to invoke interface method 'com.liulishuo.filedownloader.BaseDownloadTask com.liulishuo.filedownloader.BaseDownloadTask$IRunningTask.getOrigin()' on a null object reference

GitHub | danielnazareth | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    App crashing when try to pause

    GitHub | 1 month ago | danielnazareth
    java.lang.NullPointerException: Attempt to invoke interface method 'com.liulishuo.filedownloader.BaseDownloadTask com.liulishuo.filedownloader.BaseDownloadTask$IRunningTask.getOrigin()' on a null object reference
  2. 0

    GitHub comment 133#215659551

    GitHub | 10 months ago | StayZeal
    java.lang.IllegalStateException: This task is running -197085054, if you want to start the same task, please create a new one by FileDownloader.create
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    每次调用下载都Crash,

    GitHub | 9 months ago | iLibra
    java.lang.IllegalStateException: This task is running 2006914847, if you want to start the same task, please create a new one by FileDownloader.create
  5. 0

    將App從背景移除時,會發生錯誤

    GitHub | 10 months ago | ArthurPai
    java.lang.RuntimeException: Unable to create service com.liulishuo.filedownloader.services.FileDownloadService: java.lang.NullPointerException

    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 invoke interface method 'com.liulishuo.filedownloader.BaseDownloadTask com.liulishuo.filedownloader.BaseDownloadTask$IRunningTask.getOrigin()' on a null object reference

      at com.liulishuo.filedownloader.FileDownloadMessenger.process()
    2. com.liulishuo.filedownloader
      FileDownloader.pauseAll
      1. com.liulishuo.filedownloader.FileDownloadMessenger.process(FileDownloadMessenger.java:198)
      2. com.liulishuo.filedownloader.FileDownloadMessenger.notifyPaused(FileDownloadMessenger.java:183)
      3. com.liulishuo.filedownloader.FileDownloadList.remove(FileDownloadList.java:200)
      4. com.liulishuo.filedownloader.DownloadTaskHunter.pause(DownloadTaskHunter.java:426)
      5. com.liulishuo.filedownloader.DownloadTask.pause(DownloadTask.java:338)
      6. com.liulishuo.filedownloader.FileDownloader.pauseAll(FileDownloader.java:229)
      6 frames
    3. br.com
      MyApplication.onActivityDestroyed
      1. br.com.MyApplication.onActivityDestroyed(MyApplication.java:162)
      1 frame
    4. Android Platform
      Activity.onDestroy
      1. android.app.Application.dispatchActivityDestroyed(Application.java:275)
      2. android.app.Activity.onDestroy(Activity.java:1870)
      2 frames
    5. Android Support v4
      FragmentActivity.onDestroy
      1. android.support.v4.app.FragmentActivity.onDestroy(FragmentActivity.java:386)
      1 frame
    6. Android v7
      AppCompatActivity.onDestroy
      1. android.support.v7.app.AppCompatActivity.onDestroy(AppCompatActivity.java:212)
      1 frame
    7. br
      com.MyApplication
      1. br.com.MyApplication(MyActivity.java:217)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.app.Activity.performDestroy(Activity.java:7102)
      2. android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1170)
      3. android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5044)
      4. android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5089)
      5. android.app.ActivityThread.access$1700(ActivityThread.java:222)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1854)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:158)
      9. android.app.ActivityThread.main(ActivityThread.java:7229)
      9 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames