Skip to content

Commit b9a7aa6

Browse files
ccrvincentrubensworks
authored andcommitted
Fix NPE in ScriptingData if FileWatcher was not initialized
1 parent f5f193a commit b9a7aa6

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
@@ -78,7 +78,9 @@ public void tick() {
7878

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

0 commit comments

Comments
 (0)