Skip to content

Commit

Permalink
Empty or null
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Aug 23, 2023
1 parent 787bc0f commit d3037ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/qupath/ext/wsinfer/ui/WSInferPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ public static Property<Integer> numWorkersProperty() {
private static String getUserDir() {
String userPath = PathPrefs.getUserPath();
String cachePath = System.getProperty("user.dir") + File.separator + ".cache";
return userPath == null ? cachePath : userPath;
return userPath == null || userPath.isEmpty() ? cachePath : userPath;
}
}

0 comments on commit d3037ed

Please sign in to comment.