We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9cf223 commit d9eac4eCopy full SHA for d9eac4e
src/main/java/org/scijava/io/location/FileLocation.java
@@ -37,6 +37,7 @@
37
import java.net.URI;
38
import java.util.Collections;
39
import java.util.HashSet;
40
+import java.util.Objects;
41
import java.util.Set;
42
43
/**
@@ -52,6 +53,7 @@ public class FileLocation extends AbstractLocation implements
52
53
private final File file;
54
55
public FileLocation(final File file) {
56
+ Objects.requireNonNull(file);
57
this.file = file;
58
}
59
0 commit comments