Lior Vernia has uploaded a new change for review.

Change subject: webadmin: Fix NPE on edit host network
......................................................................

webadmin: Fix NPE on edit host network

Fixed NPE related to the Host Network QoS feature.

Change-Id: Ie80bb818a8f8df59cdd32e50dbf76b3c19968bdf
Signed-off-by: Lior Vernia <lver...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterfaceModel.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/89/36689/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterfaceModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterfaceModel.java
index 87eff3d..e02231f 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterfaceModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterfaceModel.java
@@ -381,7 +381,8 @@
     }
 
     private void updateQosChangeability() {
-        getQosModel().setIsChangable(getQosOverridden().getEntity() && 
getQosOverridden().getIsChangable());
+        getQosModel().setIsChangable(getQosOverridden().getIsAvailable() && 
getQosOverridden().getIsChangable()
+                && getQosOverridden().getEntity());
     }
 
     private void bootProtocolChanged()


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

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

Reply via email to