summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-05-21 08:16:47 +0200
committerManuel Bentele2021-05-21 08:20:26 +0200
commitaa27f68771ae00cead51338405197bf6a50b3edd (patch)
tree3bb10b53529ae132c22703d3ac11211973c645e2
parent[server] Start dozmod-server Docker container after database Docker container... (diff)
downloadtutor-module-aa27f68771ae00cead51338405197bf6a50b3edd.tar.gz
tutor-module-aa27f68771ae00cead51338405197bf6a50b3edd.tar.xz
tutor-module-aa27f68771ae00cead51338405197bf6a50b3edd.zip
[client] Remove redundant formatting of VirtualBox configurations
This commit fixes the error '[Fatal Error] :1:1: Content is not allowed in prolog.' printed on the console. This error message is caused by the XML formatting that takes place twice and even in cases where there is no VirtualBox configuration content (XML) available. Fixes: #3855 (partly)
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java
index 60ea343a..6d0bac85 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java
@@ -76,10 +76,8 @@ public class VirtConfigEditorWindow extends VirtConfigEditorWindowLayout impleme
safeClose();
}
});
- // for vbox, originalMachineDescription is unformatted, the new one will be though
- // save original description for later use
- this.originalMachineDescription = XmlHelper.getFormattedXml(
- new ByteArrayInputStream(originalmachineDescription.getBytes(StandardCharsets.UTF_8)));
+
+ this.originalMachineDescription = originalmachineDescription;
pnlEditor.setText(currentMachineDescription);
pnlEditor.setCaretPosition(0);
}