Alona Kaplan has uploaded a new change for review.

Change subject: engine: protection in case iommu group is null
......................................................................

engine: protection in case iommu group is null

Change-Id: I0493ba0f3fbab7776169d867e8b7100f8784db74
Signed-off-by: Alona Kaplan <alkap...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/VfSchedulerImpl.java
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/45/40645/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/VfSchedulerImpl.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/VfSchedulerImpl.java
index aefd187..2a02f8d 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/VfSchedulerImpl.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/VfSchedulerImpl.java
@@ -151,6 +151,10 @@
     }
 
     private boolean isSharingIommuGroup(HostDevice device) {
+        if (device.getIommuGroup() == null) {
+            return false;
+        }
+
         // Check that the device doesn't share iommu group with other devices
         List<HostDevice> iommoGroupDevices =
                 
hostDeviceDao.getHostDevicesByHostIdAndIommuGroup(device.getHostId(), 
device.getIommuGroup());


-- 
To view, visit https://gerrit.ovirt.org/40645
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0493ba0f3fbab7776169d867e8b7100f8784db74
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <alkap...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to