jacobmort / MuzeiGooglePhotos

Google Photos for Muzei
Other
6 stars 1 forks source link

Crash #3

Closed jacobmort closed 8 years ago

jacobmort commented 8 years ago

java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.job.IJobCallback android.app.job.JobParameters.getCallback()' on a null object reference at android.app.job.JobService$JobHandler.handleMessage(JobService.java:161) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

ghost commented 6 years ago

Hi, how did you fixed this issue?

llatour commented 6 years ago

Hi, I'm also having this issue. Did you fixed it ?

ghost commented 6 years ago

I did not. I found this is not happening on production version. But also I'm on the edge to refactor JobScheduler because it's unstable old android versions.

llatour commented 6 years ago

Looking at ubien delivery that closed the issue, I found the issue: Calling jobFinished with null JobParameters causes this exception. Having multiple jobs scheduled/cancelled caused this exception for me: if the job is cancelled, but the task of the jobs finishes anyway, and a new job is scheduled, calling jobFinished with the stopped job parameters causes this crash.