Skip to content

Commit

Permalink
Fix NPE in ScriptingData if FileWatcher was not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrvincent authored and rubensworks committed Oct 22, 2024
1 parent f5f193a commit b9a7aa6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public void tick() {

public void close() {
try {
this.watchService.close();
if (this.watchService != null) {
this.watchService.close();
}
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit b9a7aa6

Please sign in to comment.