mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Prevent crash with empty filename
This commit is contained in:
@@ -91,6 +91,10 @@ public class PasswordActivity extends LockingActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void Launch(Activity act, String fileName, String keyFile) throws FileNotFoundException {
|
public static void Launch(Activity act, String fileName, String keyFile) throws FileNotFoundException {
|
||||||
|
if (EmptyUtils.isNullOrEmpty(fileName)) {
|
||||||
|
throw new FileNotFoundException();
|
||||||
|
}
|
||||||
|
|
||||||
Uri uri = UriUtil.parseDefaultFile(fileName);
|
Uri uri = UriUtil.parseDefaultFile(fileName);
|
||||||
String scheme = uri.getScheme();
|
String scheme = uri.getScheme();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user