In case of PKI validation exception HttpMethod throws NPE, because bytes
value is null.
This commit is contained in:
parent
652152f167
commit
b693a3ee47
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ public class HttpMethod<R> {
|
||||||
} catch (HttpResponseException e) {
|
} catch (HttpResponseException e) {
|
||||||
throw e;
|
throw e;
|
||||||
} catch (Exception 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue