Add missing null check in FileSystemWatcher.stopAfter()

Closes gh-10941
This commit is contained in:
Johnny Lim 2017-11-07 02:22:50 +09:00 committed by Stephane Nicoll
parent 373f7db3b5
commit b965171b41
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ public class FileSystemWatcher {
}
this.watchThread = null;
}
if (Thread.currentThread() != thread) {
if (thread != null && Thread.currentThread() != thread) {
try {
thread.join();
}