mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 16:40:53 +01:00
Improved error handling
This commit is contained in:
@@ -1376,8 +1376,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
long id = args.getLong("id");
|
||||
Uri uri = args.getParcelable("uri");
|
||||
|
||||
if ("file".equals(uri.getScheme()))
|
||||
if ("file".equals(uri.getScheme())) {
|
||||
Log.w("Save attachment uri=" + uri);
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_stream));
|
||||
}
|
||||
|
||||
File file = EntityAttachment.getFile(context, id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user