Shahar Havivi has uploaded a new change for review.

Change subject: ui: fix NPE when trying to create a pool with limited 
permissions
......................................................................

ui: fix NPE when trying to create a pool with limited permissions

https://bugzilla.redhat.com/1105622
Change-Id: I676d5d9bf0a51e2f570f3b45d930122e58b24fcf
Signed-off-by: Shahar Havivi <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/96/28596/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java
index 43d0e53..f6c1a74 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java
@@ -522,8 +522,10 @@
             return;
         }
         VDSGroup cluster = getModel().getSelectedCluster();
-        
getModel().getCustomPropertySheet().setKeyValueString(getModel().getCustomPropertiesKeysList()
-                .get(cluster.getcompatibility_version()));
+        if (getModel().getCustomPropertiesKeysList() != null) {
+            
getModel().getCustomPropertySheet().setKeyValueString(getModel().getCustomPropertiesKeysList()
+                    .get(cluster.getcompatibility_version()));
+        }
     }
 
     public int maxCpus = 0;


-- 
To view, visit http://gerrit.ovirt.org/28596
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I676d5d9bf0a51e2f570f3b45d930122e58b24fcf
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Shahar Havivi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to