Commit 7cf743a0 authored by Martti Käärik's avatar Martti Käärik
Browse files

Don't try to decode empty body in HTTP adapter.

parent 010fd93e
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -249,6 +249,8 @@ public class HttpSystemAdapter implements SystemAdapter {
	}

	protected Object decodeBody(String body, Class<?> type) throws IOException {
		if (body.length() == 0)
			return null;
		return this.mapper.readValue(body, type);
	}