Repository: libre-tube/LibreTube

Issue #2191: NPE when starting DownloadService
Created: 2022-12-02T22:54:07Z
Steps to reproduce
Hey Guys,
Here is the log:
java.lang.RuntimeException: Unable to start service com.github.libretube.services.DownloadService@e35a648 with null: java.lang.NullPointerException
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4709)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2182)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7904)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ExecInit.main(ExecInit.java:49)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
Caused by: java.lang.NullPointerException
at com.github.libretube.services.DownloadService.onStartCommand(DownloadService.kt:24)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4691)
... 11 more
Expected behavior
Should not crash
Actual behavior
Crashed when browsing
LibreTube version
0.9.0
Android version
13
Other details
No response
Acknowledgements

 I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
 I have written a short but informative title.
 I will fill out all of the requested information in this form.

Duplicate issue #2394: Error during download.
Created: 2022-12-16T11:58:57Z
Steps to reproduce
1.Download the video.
2.Quit the app and remove it from your recent screens.
3.An error occurs
Expected behavior
There should be no error.
Actual behavior
java.lang.RuntimeException: Unable to start service com.github.libretube.services.DownloadService@71ee4be with null: java.lang.NullPointerException
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5110)
at android.app.ActivityThread.access$2100(ActivityThread.java:310)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2319)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.NullPointerException
at com.github.libretube.services.DownloadService.onStartCommand(DownloadService.kt:39)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5092)
... 9 more
LibreTube version
0.9.0 Debug
Android version
Android 12
Other details
?
Acknowledgements

 I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
 I have written a short but informative title.
 I will fill out all of the requested information in this form.

Closing comment (2022-12-16T12:10:32Z): Duplicate of #2191