Libor Spevak has uploaded a new change for review. Change subject: webadmin: NullPointerException detected when selecting hosts ......................................................................
webadmin: NullPointerException detected when selecting hosts libvirtVersion attribute causes NullPointerException Change-Id: I7398439d3c7dfe59750213fe94c06899b9d2cacd Signed-off-by: Libor Spevak <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/52/10152/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java index 828630a..fb3db2e 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java @@ -186,7 +186,11 @@ } public void setLibvirtVersion(String value) { - if (!libvirtVersion.equals(value)) { + if (libvirtVersion == null && value == null) { + return; + } + + if(libvirtVersion == null || !libvirtVersion.equals(value)) { libvirtVersion = value; OnPropertyChanged(new PropertyChangedEventArgs("LibvirtVersion")); //$NON-NLS-1$ } -- To view, visit http://gerrit.ovirt.org/10152 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7398439d3c7dfe59750213fe94c06899b9d2cacd Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Libor Spevak <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
