summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSimon Rettberg2023-04-26 15:12:16 +0200
committerSimon Rettberg2023-04-26 15:12:52 +0200
commit8ce9b05c421a043328129b44e207af5fc81240ad (patch)
treec7e0bced91b44ca2fb40efd9c23ba1a301f0ff47 /src/main/java
parent[libvirt] Remove config validation on construction (diff)
downloadmaster-sync-shared-8ce9b05c421a043328129b44e207af5fc81240ad.tar.gz
master-sync-shared-8ce9b05c421a043328129b44e207af5fc81240ad.tar.xz
master-sync-shared-8ce9b05c421a043328129b44e207af5fc81240ad.zip
[qemu] Fix NPE
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java b/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java
index 7b1b9bb..86216a0 100644
--- a/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java
+++ b/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java
@@ -34,6 +34,9 @@ public class VirtualizationConfigurationQemuUtils
{
DriveBusType type = null;
+ if ( busType == null )
+ return null;
+
switch ( busType ) {
case IDE:
type = DriveBusType.IDE;