Add missing null check in FileSystemWatcher.stopAfter()
Closes gh-10941
This commit is contained in:
committed by
Stephane Nicoll
parent
373f7db3b5
commit
b965171b41
@@ -194,7 +194,7 @@ public class FileSystemWatcher {
|
||||
}
|
||||
this.watchThread = null;
|
||||
}
|
||||
if (Thread.currentThread() != thread) {
|
||||
if (thread != null && Thread.currentThread() != thread) {
|
||||
try {
|
||||
thread.join();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user