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 ee6d014 commit 6a21367Copy full SHA for 6a21367
src/main/java/edu/kit/datamanager/ro_crate/util/FileSystemUtil.java
@@ -21,10 +21,10 @@ private FileSystemUtil() {
21
* @return true if it looks like a file path, false otherwise
22
*/
23
public static boolean isFilePath(String id) {
24
- return !(
25
- id.startsWith("doi:") &&
26
- id.startsWith("http") &&
27
- id.startsWith("https")
+ return id != null && !(
+ id.startsWith("doi:") ||
+ id.startsWith("http://") ||
+ id.startsWith("https://")
28
);
29
}
30
0 commit comments