Merge pull request #3834 from ramunask/HttpMethod-null-pointer-fix

NPE fix for HttpMethod
This commit is contained in:
Pedro Igor 2017-02-20 11:28:18 -03:00 committed by GitHub
commit 4d614ed635

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);
}
}