Add missing null check in FileSystemWatcher.stopAfter()
Closes gh-10941
This commit is contained in:
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue