[Fix] Check if updateTask is null in DefaultObserverHandler

This commit is contained in:
Robert von Burg 2022-08-17 14:49:32 +02:00
parent 62b44fd44e
commit 09889b6e77
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ public class DefaultObserverHandler implements ObserverHandler {
@Override
public void stop() {
this.run = false;
this.updateTask.cancel(true);
if (this.updateTask != null)
this.updateTask.cancel(true);
}
@Override