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(a)redhat.com>
(cherry picked from commit ca058c1123a0d17df01b8b8d5e06c686e6bd39a6)
---
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/63292
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: sdk_4.0
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>