In case of PKI validation exception HttpMethod throws NPE, because bytes value is null.

This commit is contained in:
Ramūnas Kraujutis 2017-02-03 11:24:30 +02:00
parent 652152f167
commit b693a3ee47

View file

@ -100,7 +100,7 @@ public class HttpMethod<R> {
} catch (HttpResponseException e) {
throw e;
} catch (Exception e) {
throw new RuntimeException("Error executing http method [" + builder + "]. Response : " + new String(bytes), e);
throw new RuntimeException("Error executing http method [" + builder + "]. Response : " + String.valueOf(bytes), e);
}
}