Change in ovirt-engine[ovirt-engine-3.5]: restapi: NPE when mapping watchdog without id

Tal Nisan has submitted this change and it was merged. Change subject: restapi: NPE when mapping watchdog without id ...................................................................... restapi: NPE when mapping watchdog without id Currently the operation to add a watchdog to a VM fails if the id isn't provided, as this triggers a NPE. This adds a check to prevent that NPE. Change-Id: Ib526525b37e74e2e4d863e4418dfb852a7ca4200 Bug-Url: https://bugzilla.redhat.com/1129781 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> (cherry picked from commit c8dda3faf38f91854ce79d832fb0506b8da37b88) --- M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/WatchdogMapper.java 1 file changed, 3 insertions(+), 2 deletions(-) Approvals: Juan Hernandez: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/31759 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib526525b37e74e2e4d863e4418dfb852a7ca4200 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Tal Nisan <tnisan@redhat.com> Gerrit-Reviewer: automation@ovirt.org
participants (1)
-
tnisan@redhat.com