Change in ovirt-engine[master]: restapi: fix NPE on vm statistics

juan.hernandez at redhat.com juan.hernandez at redhat.com
Wed Jun 4 07:48:03 UTC 2014


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: fix NPE on vm statistics
......................................................................


restapi: fix NPE on vm statistics

The problem was that the getMigrationProgressPercent can return null, but this
case was not handled and the setting to long throw a NPE.

Fixed by explicitly handling the null.

Change-Id: Iee06e42c33a6ade371a84deb89d459586d82a9c3
Bug-Url: https://bugzilla.redhat.com/1103490
Signed-off-by: Tomas Jelinek <tjelinek at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/VmStatisticalQuery.java
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Tomas Jelinek: Verified
  Juan Hernandez: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iee06e42c33a6ade371a84deb89d459586d82a9c3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez 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