Ondra Machacek has submitted this change and it was merged.
Change subject: Don't return null from send method in case of failure
......................................................................
Don't return null from send method in case of failure
In case API returns that request is incorrect, don't return null from
send method, so user's code don't fail on NullPointerExceptions. Instead
return Reponse implementation and set the apporiate object to null.
Change-Id: I8d564ee8636cbba5ae4ce7b8b7b558c86dec2fbe
Signed-off-by: Ondra Machacek <omachace(a)redhat.com>
---
M generator/src/main/java/org/ovirt/sdk/java/ServicesImplGenerator.java
1 file changed, 6 insertions(+), 1 deletion(-)
Approvals:
Ondra Machacek: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/63304
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8d564ee8636cbba5ae4ce7b8b7b558c86dec2fbe
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: master
Gerrit-Owner: Ondra Machacek <omachace(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondra Machacek <omachace(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>