Add attribute null check
This commit is contained in:
parent
f7b1216b25
commit
a5b1abc9a8
@ -124,7 +124,9 @@ public abstract class FileWatcher implements Runnable {
|
||||
*/
|
||||
public void setStop() {
|
||||
stop = true;
|
||||
thread.interrupt();
|
||||
if (thread != null) {
|
||||
thread.interrupt();
|
||||
}
|
||||
}
|
||||
|
||||
/** Init sha512 map.
|
||||
|
Loading…
Reference in New Issue
Block a user