Skip to content

Commit abc6652

Browse files
committed
Fix error when trying to close LayeredResourcePack where the filesystem is null.
1 parent efb1f3d commit abc6652

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chunky/src/java/se/llbit/chunky/resources/LayeredResourcePacks.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ public Path getRootPath() throws IOException {
109109

110110
@Override
111111
public void close() throws IOException {
112+
if (fileSystem == null) {
113+
return;
114+
}
112115
try {
113116
fileSystem.close();
114117
} catch (UnsupportedOperationException e) {

0 commit comments

Comments
 (0)