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 114c93e commit fa87073
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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 fa87073

Please sign in to comment.