mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Check resolver input/output streams
This commit is contained in:
@@ -519,6 +519,8 @@ public class FragmentOptionsEncryption extends FragmentBase implements SharedPre
|
||||
throw new FileNotFoundException();
|
||||
|
||||
try (InputStream is = context.getContentResolver().openInputStream(uri)) {
|
||||
if (is == null)
|
||||
throw new FileNotFoundException(uri.toString());
|
||||
return Helper.readBytes(is);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user