mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
Check for null URIs
This commit is contained in:
@@ -2503,6 +2503,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
int requestCode = args.getInt("requestCode");
|
||||
Uri uri = args.getParcelable("uri");
|
||||
|
||||
if (uri == null)
|
||||
throw new FileNotFoundException();
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean suggest_names = prefs.getBoolean("suggest_names", true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user