mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-20 09:01:33 -08:00
Handle null filepath.
This commit is contained in:
1 parent
913a0f1155
commit
8688717db2
1 file changed
+2
@@ -123,6 +123,8 @@ public class UriUtil {
|
||||
}
|
||||
|
||||
private static boolean isValidFilePath(String filepath) {
|
||||
if (EmptyUtils.isNullOrEmpty(filepath)) { return false; }
|
||||
|
||||
File file = new File(filepath);
|
||||
return file.exists() && file.canRead();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user