Merge pull request #10941 from izeye:null-check

* pr/10941:
  Add missing null check in FileSystemWatcher.stopAfter()
This commit is contained in:
Stephane Nicoll
2017-11-07 08:45:45 +01:00

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();
}