-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nullpointer exception on httpconn.contentType in DownloadWorker.kt if contentType is not provided by the server. #935
Comments
I use the latest version 1.11.6. |
Any luck ? i am facing the same issue ?? @8Duke8 |
I have the same problem, version 1.11.7, Android 10 |
I have the same issue, does anyone have an idea how to fix? |
I checked again, the situation is like this: |
I have the same issue, does anybody know how to fix this? |
D/DownloadWorker( 7364): Update notification: {notificationId: 5, title: offlineMapCZ.map, status: FAILED, progress: -1}
W/System.err( 7364): java.lang.NullPointerException: httpConn.contentType must not be null
W/System.err( 7364): at vn.hunghd.flutterdownloader.DownloadWorker.downloadFile(DownloadWorker.kt:343)
W/System.err( 7364): at vn.hunghd.flutterdownloader.DownloadWorker.doWork(DownloadWorker.kt:206)
W/System.err( 7364): at androidx.work.Worker$1.run(Worker.java:86)
W/System.err( 7364): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
W/System.err( 7364): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
W/System.err( 7364): at java.lang.Thread.run(Thread.java:1012)
The contentType should be handled as optional if possible.
The text was updated successfully, but these errors were encountered: