From 8ce9b05c421a043328129b44e207af5fc81240ad Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 26 Apr 2023 15:12:16 +0200 Subject: [qemu] Fix NPE --- .../configuration/VirtualizationConfigurationQemuUtils.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java') 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; -- cgit v1.2.3-55-g7522