Merge pull request #10941 from izeye:null-check
* pr/10941: Add missing null check in FileSystemWatcher.stopAfter()
This commit is contained in:
commit
f975e8d363
|
@ -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