Skip to content

Commit 6d8ba3b

Browse files
Smaller change
1 parent 1d25300 commit 6d8ba3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/io/frictionlessdata/datapackage/Package.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,9 @@ private static URL getParentUrl(URL urlSource) throws URISyntaxException, Malfor
10021002

10031003
// https://stackoverflow.com/a/47595502/2535335
10041004
private static boolean isArchive(File f) throws IOException {
1005+
if ((null == f) || (!f.exists()) || (!f.isFile())) {
1006+
return false;
1007+
}
10051008
int fileSignature;
10061009
RandomAccessFile raf = new RandomAccessFile(f, "r");
10071010
fileSignature = raf.readInt();

0 commit comments

Comments
 (0)