You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2020/11/05 14:16:47 UTC
[httpcomponents-client] branch master updated (ff83bfe -> 73a05ac)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git.
omit ff83bfe Build and test on both AMD64 and ARM64
new c948960 HTTPCLIENT-2126: `AsyncCachingExec` throws NPE when response body is null
new 73a05ac Build and test on both AMD64 and ARM64
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (ff83bfe)
\
N -- N -- N refs/heads/master (73a05ac)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
[httpcomponents-client] 01/02: HTTPCLIENT-2126: `AsyncCachingExec`
throws NPE when response body is null
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit c9489606d5ae6ff3af6eac9f407260b3e1f4dca0
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Thu Nov 5 15:09:31 2020 +0100
HTTPCLIENT-2126: `AsyncCachingExec` throws NPE when response body is null
---
.../java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java
index c6db03c..2ccae57 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java
@@ -157,7 +157,9 @@ class AsyncCachingExec extends CachingExecBase implements AsyncExecChainHandler
cacheResponse,
content != null ? new BasicEntityDetails(content.length, contentType) : null);
if (dataConsumer != null) {
- dataConsumer.consume(ByteBuffer.wrap(content));
+ if (content != null) {
+ dataConsumer.consume(ByteBuffer.wrap(content));
+ }
dataConsumer.streamEnd(null);
}
asyncExecCallback.completed();
[httpcomponents-client] 02/02: Build and test on both AMD64 and
ARM64
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit 73a05ac352693999270f9cfa2388f0577a7f12af
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Tue Nov 3 16:13:54 2020 +0200
Build and test on both AMD64 and ARM64
---
.travis.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index a3db095..7cef4a3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,6 +17,10 @@ language: java
dist: trusty
sudo: false
+arch:
+ - amd64
+ - arm64-graviton2
+
jdk:
- oraclejdk8
- openjdk12