Check resolver input/output streams

This commit is contained in:
M66B
2022-03-27 13:43:45 +02:00
parent df3e0e132a
commit 1aa80a9258
16 changed files with 77 additions and 10 deletions

View File

@@ -4084,7 +4084,7 @@ public class FragmentCompose extends FragmentBase {
os = new FileOutputStream(file);
if (is == null)
throw new IOException("Content provider crashed");
throw new FileNotFoundException(uri.toString());
byte[] buffer = new byte[Helper.BUFFER_SIZE];
for (int len = is.read(buffer); len != -1; len = is.read(buffer)) {