Change in ovirt-engine-sdk-java[sdk_4.0]: Don't return null from send method in case of failure

omachace at redhat.com omachace at redhat.com
Mon Sep 5 14:17:48 UTC 2016


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 at redhat.com>
(cherry picked from commit 9a35453e842b1c21f33d6b916804103f920f241c)
---
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/63306
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: sdk_4.0
Gerrit-Owner: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list