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

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@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@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Tomas Jelinek <tjelinek@redhat.com> Gerrit-Reviewer: automation@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server
participants (1)
-
juan.hernandez@redhat.com