Skip to content
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

java.lang.NullPointerException: uri #548

Open
bugrevealingbme opened this issue Oct 6, 2021 · 2 comments
Open

java.lang.NullPointerException: uri #548

bugrevealingbme opened this issue Oct 6, 2021 · 2 comments

Comments

@bugrevealingbme
Copy link

There are no downloads. There is no task. I am deleting a file. Also Task and file. I get this error when I try to download it again. APK file

W/System.err(29585): java.lang.NullPointerException: uri
W/System.err(29585): at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:133)
W/System.err(29585): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1492)
W/System.err(29585): at android.content.ContentResolver.openOutputStream(ContentResolver.java:1242)
W/System.err(29585): at vn.hunghd.flutterdownloader.DownloadWorker.downloadFile(DownloadWorker.java:358)
W/System.err(29585): at vn.hunghd.flutterdownloader.DownloadWorker.doWork(DownloadWorker.java:208)
W/System.err(29585): at androidx.work.Worker$1.run(Worker.java:85)
W/System.err(29585): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(29585): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(29585): at java.lang.Thread.run(Thread.java:919)
I/WM-WorkerWrapper(29585): Worker result FAILURE for Work [ id=96df702b-682a-41a3-9c0e-743712235433, tags={ flutter_download_task, vn.hunghd.flutterdownloader.DownloadWorker } ]

@bugrevealingbme
Copy link
Author

bugrevealingbme commented Oct 6, 2021

My Manifest:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

@hnvn
Copy link
Member

hnvn commented Oct 9, 2021

What Android version are you running on? Where do you save your downloaded file? It maybe relate to #533, please have a look at this comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants