We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd5ec9 commit 5e5a774Copy full SHA for 5e5a774
src/main/java/nsusbloader/FilesHelper.java
@@ -24,9 +24,12 @@
24
25
public class FilesHelper {
26
public static String getRealFolder(String location){
27
- Path locationAsPath = Paths.get(location);
28
- if (Files.notExists(locationAsPath) || Files.isRegularFile(locationAsPath))
29
- return System.getProperty("user.home");
+ try{
+ Path locationAsPath = Paths.get(location);
+ if (Files.notExists(locationAsPath) || Files.isRegularFile(locationAsPath))
30
+ return System.getProperty("user.home");
31
+ }
32
+ catch (Exception ignored){}
33
return location;
34
}
35
0 commit comments