Skip to content

Commit fa87073

Browse files
ccrvincentrubensworks
authored andcommitted
Fix NPE in ScriptingData if FileWatcher was not initialized
1 parent 114c93e commit fa87073

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/cyclops/integratedscripting/core/network/ScriptingData.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ public void tick() {
7979

8080
public void close() {
8181
try {
82-
this.watchService.close();
82+
if (this.watchService != null) {
83+
this.watchService.close();
84+
}
8385
} catch (IOException e) {
8486
e.printStackTrace();
8587
}

0 commit comments

Comments
 (0)