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