android: Throw an exception if UUID can't get parsed
The parser is quite picky and e.g. doesn't accept UUIDs without dashes. Even without a specific error, this at least points the users into the right direction. Fixes #3583.
This commit is contained in:
parent
80337f4f9d
commit
ec317c29ca
|
@ -463,8 +463,7 @@ public class VpnProfileImportActivity extends AppCompatActivity
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException e)
|
catch (IllegalArgumentException e)
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
throw new JSONException(getString(R.string.profile_import_failed_value, "uuid"));
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
ParsedVpnProfile profile = new ParsedVpnProfile();
|
ParsedVpnProfile profile = new ParsedVpnProfile();
|
||||||
Integer flags = 0;
|
Integer flags = 0;
|
||||||
|
|
Loading…
Reference in New Issue