Skip to content

Commit 63aa1aa

Browse files
committed
Fix #6 NullPointerException when top directories are not set
1 parent bc251f7 commit 63aa1aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/org/netbeans/modules/php/wordpress/util/GithubZipEntryFilter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ public String getPath(ZipEntry entry) {
9696
String path = entry.getName();
9797
String[] splitPath = splitPath(path);
9898
String topDirectory = splitPath[0];
99+
if (topDirectories == null) {
100+
return path;
101+
}
99102
if (splitPath.length == 1 || topDirectories.contains(topDirectory)) {
100103
return path;
101104
}

0 commit comments

Comments
 (0)