Michael Pasternak has submitted this change and it was merged.
Change subject: restapi: fix NPE when adding vm with no cpu mode
......................................................................
restapi: fix NPE when adding vm with no cpu mode
A check whether the lately added attribute 'cpu mode' is defined
(set) in a request before trying to map it to enum value was
missing, thus creating a NPE.
Change-Id: I94b2269a952e4dedcd08ee4b22940aeca020fb4c
Signed-off-by: Arik Hadas <ahadas(a)redhat.com>
---
M
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Michael Pasternak: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/10372
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I94b2269a952e4dedcd08ee4b22940aeca020fb4c
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhornyak(a)redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern(a)redhat.com>