diff options
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageUpdateWizard.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageUpdateWizard.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageUpdateWizard.java index 1bcbaaf6..9d17ff25 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageUpdateWizard.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageUpdateWizard.java @@ -92,10 +92,12 @@ public class ImageUpdateWizard extends Wizard implements UiFeedback, QuitNotific return true; boolean confirmed = Gui.showMessageBox(this, I18n.WIZARD.getString("ImageUpdate.Message.yesNo.cancelRequest"), MessageType.QUESTION_YESNO, null, null); - if (confirmed && state.upload != null) { + if (confirmed && state != null && state.upload != null) { QuickTimer.scheduleOnce(new Task() { @Override public void fire() { + if (state == null || state.upload == null) + return; state.upload.cancelError("ImageUploadWizard was cancelled by user"); } }); |
