This is an automated email from the ASF dual-hosted git repository. gaul pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jclouds.git
The following commit(s) were added to refs/heads/master by this push: new 1f181bf00c Fix NPE on failure to parse AWSError when determing whether to retry request 1f181bf00c is described below commit 1f181bf00cf4dc7e2088472c08856ec1a5ae5716 Author: Max Smiley <max.smi...@hammerspace.com> AuthorDate: Wed Jul 24 22:10:42 2024 +0000 Fix NPE on failure to parse AWSError when determing whether to retry request --- .../main/java/org/jclouds/s3/handlers/S3RedirectionRetryHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/s3/src/main/java/org/jclouds/s3/handlers/S3RedirectionRetryHandler.java b/apis/s3/src/main/java/org/jclouds/s3/handlers/S3RedirectionRetryHandler.java index bfbef0ca61..638538da91 100644 --- a/apis/s3/src/main/java/org/jclouds/s3/handlers/S3RedirectionRetryHandler.java +++ b/apis/s3/src/main/java/org/jclouds/s3/handlers/S3RedirectionRetryHandler.java @@ -53,7 +53,7 @@ public class S3RedirectionRetryHandler extends RedirectionRetryHandler { command.incrementRedirectCount(); closeClientButKeepContentStream(response); AWSError error = utils.parseAWSErrorFromContent(command.getCurrentRequest(), response); - String host = error.getDetails().get("Endpoint"); + String host = error == null ? null : error.getDetails().get("Endpoint"); if (host != null) { if (host.equals(command.getCurrentRequest().getEndpoint().getHost())) { // must be an amazon error related to