summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2026-03-06 11:43:58 +0100
committerSimon Rettberg2026-03-06 11:43:58 +0100
commitfa05808e0d5ca5672ba54c05ed9bcac2a40ea44e (patch)
treef1260e36864bce80d735fb680efe0c06b1c79ce8
parent[client] Ignore all exceptions while iterating over trust managers (diff)
downloadtutor-module-fa05808e0d5ca5672ba54c05ed9bcac2a40ea44e.tar.gz
tutor-module-fa05808e0d5ca5672ba54c05ed9bcac2a40ea44e.tar.xz
tutor-module-fa05808e0d5ca5672ba54c05ed9bcac2a40ea44e.zip
[cliet] Fix NPEHEADmaster
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageUpdateWizard.java4
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");
}
});