mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Improved error handling
This commit is contained in:
@@ -1009,8 +1009,10 @@ public class FragmentSetup extends FragmentEx {
|
||||
Uri uri = args.getParcelable("uri");
|
||||
String password = args.getString("password");
|
||||
|
||||
if ("file".equals(uri.getScheme()))
|
||||
if ("file".equals(uri.getScheme())) {
|
||||
Log.w("Export uri=" + uri);
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_stream));
|
||||
}
|
||||
|
||||
OutputStream out = null;
|
||||
try {
|
||||
@@ -1113,8 +1115,10 @@ public class FragmentSetup extends FragmentEx {
|
||||
Uri uri = args.getParcelable("uri");
|
||||
String password = args.getString("password");
|
||||
|
||||
if ("file".equals(uri.getScheme()))
|
||||
if ("file".equals(uri.getScheme())) {
|
||||
Log.w("Import uri=" + uri);
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_stream));
|
||||
}
|
||||
|
||||
InputStream in = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user