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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to