summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java
diff options
context:
space:
mode:
authorSimon Rettberg2018-06-27 11:24:49 +0200
committerSimon Rettberg2018-06-27 11:24:49 +0200
commitdabce43e42b98bab01f3d6aebfb926854011ba31 (patch)
tree4d099668e20b272603f9ee6a249bbd4216b8e13b /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java
parent[client] Fix string compare (diff)
downloadtutor-module-dabce43e42b98bab01f3d6aebfb926854011ba31.tar.gz
tutor-module-dabce43e42b98bab01f3d6aebfb926854011ba31.tar.xz
tutor-module-dabce43e42b98bab01f3d6aebfb926854011ba31.zip
[client] Fix stuff FindBugs complained about
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java
index 5266e157..6dba2a08 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtDropDownConfigEditorWindow.java
@@ -56,12 +56,15 @@ public class VirtDropDownConfigEditorWindow extends VirtDropDownConfigEditorWind
} catch (IOException e) {
LOGGER.error("Could not get VmMetaData instance from given machine description: ", e);
}
+
+ meta = metaCandidate;
+
if (metaCandidate == null) {
+ this.originalMachineDescription = null;
dispose();
+ return;
}
- meta = metaCandidate;
-
initializeSoundBox(meta.getSupportedSoundCards());
initializeDDABox(meta.getSupportedDDAccs());
initializeHWVersBox(meta.getSupportedHWVersions());