mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 16:22:31 -08:00
Protect against null URI.
This commit is contained in:
1 parent
e403f50d20
commit
c78a3b875b
1 file changed
+4
-1
@@ -357,7 +357,10 @@ public class PasswordActivity extends LockingActivity {
|
||||
if ( action != null && action.equals(VIEW_INTENT) ) {
|
||||
Uri incoming = i.getData();
|
||||
mDbUri = incoming;
|
||||
if (incoming.getScheme().equals("file")) {
|
||||
if (incoming == null) {
|
||||
return R.string.error_can_not_handle_uri;
|
||||
}
|
||||
else if (incoming.getScheme().equals("file")) {
|
||||
String fileName = incoming.getPath();
|
||||
|
||||
if (fileName.length() == 0) {
|
||||
|
||||
Reference in new issue
Block a user