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,8 +124,10 @@ public abstract class FileWatcher implements Runnable {
*/ */
public void setStop() { public void setStop() {
stop = true; stop = true;
if (thread != null) {
thread.interrupt(); thread.interrupt();
} }
}
/** Init sha512 map. /** Init sha512 map.
*/ */