diff options
author | Simon Rettberg | 2023-04-26 15:12:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-04-26 15:12:52 +0200 |
commit | 8ce9b05c421a043328129b44e207af5fc81240ad (patch) | |
tree | c7e0bced91b44ca2fb40efd9c23ba1a301f0ff47 | |
parent | [libvirt] Remove config validation on construction (diff) | |
download | master-sync-shared-8ce9b05c421a043328129b44e207af5fc81240ad.tar.gz master-sync-shared-8ce9b05c421a043328129b44e207af5fc81240ad.tar.xz master-sync-shared-8ce9b05c421a043328129b44e207af5fc81240ad.zip |
[qemu] Fix NPE
-rw-r--r-- | src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java | 3 |
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; |