Change in ovirt-engine-sdk-java[master]: Avoid of reading fault response in case response body is empty

omachace at redhat.com omachace at redhat.com
Mon Sep 5 10:49:36 UTC 2016


Ondra Machacek has submitted this change and it was merged.

Change subject: Avoid of reading fault response in case response body is empty
......................................................................


Avoid of reading fault response in case response body is empty

In case there is 404 returned from API, we try to parse response body,
but in this case it's useless and returned exception previously,
this patch changes it, so we don't parse response in case it's empty.

Change-Id: Ibc43f547a2dc51b2defbc68b81b23a2bc56cd7a1
Signed-off-by: Ondra Machacek <omachace at redhat.com>
---
M sdk/src/main/java/org/ovirt/engine/sdk4/internal/services/ServiceImpl.java
1 file changed, 5 insertions(+), 4 deletions(-)

Approvals:
  Ondra Machacek: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/63291
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibc43f547a2dc51b2defbc68b81b23a2bc56cd7a1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: master
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