mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Handle null filepath.
This commit is contained in:
@@ -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