Change in ovirt-engine[master]: frontend: Fix NPE in os info

tjelinek at redhat.com tjelinek at redhat.com
Tue Sep 16 12:07:37 UTC 2014


Tomas Jelinek has submitted this change and it was merged.

Change subject: frontend: Fix NPE in os info
......................................................................


frontend: Fix NPE in os info

This patch takes care of console-related methods in AsyncDataProvider.
NPE can occur when existing vm is edited, but its OS was removed from os
info file.

Fixed by handling nulls in AsyncDataProvider and handling non-existent
OS case in client code (UnitVmModel).

Change-Id: I2aef27aee8e079497c9eaa22dfaa6cb9b5502aae
Bug-Url: https://bugzilla.redhat.com/1046809
Signed-off-by: Frantisek Kobzik <fkobzik at redhat.com>
---
M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/dataprovider/AsyncDataProvider.java
M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/UnitVmModel.java
2 files changed, 12 insertions(+), 2 deletions(-)

Approvals:
  Tomas Jelinek: Looks good to me, approved
  Frank Kobzik: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2aef27aee8e079497c9eaa22dfaa6cb9b5502aae
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Frank Kobzik <fkobzik at redhat.com>
Gerrit-Reviewer: Frank Kobzik <fkobzik at redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list