mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Prevent crash
This commit is contained in:
@@ -310,6 +310,8 @@ public class ActivityEML extends ActivityBase {
|
||||
InputStream is;
|
||||
try {
|
||||
pfd = getContentResolver().openFileDescriptor(uri, "w");
|
||||
if (pfd == null)
|
||||
throw new FileNotFoundException(uri.toString());
|
||||
os = new FileOutputStream(pfd.getFileDescriptor());
|
||||
is = apart.part.getInputStream();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user