Tal Nisan has uploaded a new change for review. Change subject: webadmin: Fix bug in a add floating disk ......................................................................
webadmin: Fix bug in a add floating disk Change-Id: Ie354b70ca88374cc054f84d7a3488742cb65727d Bug-Url: https://bugzilla.redhat.com/1079741 Signed-off-by: Tal Nisan <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/16/26016/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java index 1d5fb12..d06ea0e 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java @@ -673,6 +673,10 @@ } private void updatePlugChangeability() { + if (getVm() == null) { // No point in updating plug to VM if there's no VM + return; + } + DiskInterface diskInterface = (DiskInterface) getDiskInterface().getSelectedItem(); boolean isVmRunning = getVm() != null && getVm().getStatus() != VMStatus.Down; -- To view, visit http://gerrit.ovirt.org/26016 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie354b70ca88374cc054f84d7a3488742cb65727d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tal Nisan <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
