Prevent crash with empty filename

This commit is contained in:
Brian Pellin
2016-10-31 20:33:25 -05:00
parent 723fa40205
commit 236b26b9bd

View File

@@ -91,6 +91,10 @@ public class PasswordActivity extends LockingActivity {
}
public static void Launch(Activity act, String fileName, String keyFile) throws FileNotFoundException {
if (EmptyUtils.isNullOrEmpty(fileName)) {
throw new FileNotFoundException();
}
Uri uri = UriUtil.parseDefaultFile(fileName);
String scheme = uri.getScheme();