Commit b965171b authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Add missing null check in FileSystemWatcher.stopAfter()

Closes gh-10941
parent 373f7db3
......@@ -194,7 +194,7 @@ public class FileSystemWatcher {
}
this.watchThread = null;
}
if (Thread.currentThread() != thread) {
if (thread != null && Thread.currentThread() != thread) {
try {
thread.join();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment