Add attribute null check

This commit is contained in:
Louis Royer 2020-03-28 11:34:28 +01:00
parent f7b1216b25
commit a5b1abc9a8

View File

@ -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.