In case of PKI validation exception HttpMethod throws NPE, because bytes value is null.
This commit is contained in:
1 parent
652152f167
commit
b693a3ee47
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user