From 155932487ade8c3d05504434947eeb67fd76c59e Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Wed, 13 Oct 2021 09:43:38 +0800
Subject: [PATCH] fix interface report an error when emulatedMachine is null

---
 .../ovirt/engine/core/common/utils/ClusterEmulatedMachines.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/ClusterEmulatedMachines.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/ClusterEmulatedMachines.java
index 7d5c902..882b3be 100644
--- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/ClusterEmulatedMachines.java
+++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/ClusterEmulatedMachines.java
@@ -58,7 +58,7 @@ public class ClusterEmulatedMachines {
     }
 
     public static ClusterEmulatedMachines parse(String emulatedMachine) {
-        if (emulatedMachine == null) {
+        if (emulatedMachine == null || emulatedMachine.equals("")) {
             return new ClusterEmulatedMachines();
         }
         String[] em = emulatedMachine.split(";");
-- 
2.27.0

