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
Changes for plugins/org.etsi.mts.tdl.execution.java.runtime/src/org/etsi/mts/tdl/execution/java/adapters/http/HttpSystemAdapter.java: 2 added lines, 0 removed lines.
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);
	}