Skip to content

Commit

Permalink
Merge pull request #64 from bgilbert/synthetic
Browse files Browse the repository at this point in the history
Allow opening the synthetic slide
  • Loading branch information
bgilbert authored Nov 7, 2023
2 parents d4ba4a5 + 903c984 commit 8122c82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org/openslide/OpenSlide.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public static String detectVendor(File file) {
}

public OpenSlide(File file) throws IOException {
if (!file.exists()) {
// allow opening the synthetic slide
if (!file.exists() && !file.getPath().equals("")) {
throw new FileNotFoundException(file.toString());
}

Expand Down

0 comments on commit 8122c82

Please sign in to comment.