Add attribute null check

pull/86/head
Louis Royer 4 years ago
parent f7b1216b25
commit a5b1abc9a8

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

Loading…
Cancel
Save