Skip to content

Commit 0e231ab

Browse files
committed
COMPUTE-1237: Fix NullPointerException when failed to receive response
1 parent c169ba2 commit 0e231ab

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

api/RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## unreleased
44

5+
* Fix `java.lang.NullPointerException` when could not receive response in `com.dnanexus.DXHTTPRequest`
6+
57
## 0.13.11 (2025-03-24)
68

79
* Support 429 Too Many Requests response code from platform to retry throttled requests.

api/src/main/java/com/dnanexus/DXHTTPRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ private ParsedResponse requestImpl(String resource, String data, boolean parseRe
461461
attemptsWithThrottled++;
462462
// Retries due to 429 or 503 Service Unavailable and Retry-After do NOT count against the
463463
// allowed number of retries.
464-
if (statusCode != 503 && statusCode != 429) {
464+
if (statusCode == null || (statusCode != 503 && statusCode != 429)) {
465465
attempts++;
466466
}
467467

api/src/main/resources/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dxApi {
2-
version = "0.13.12-SNAPSHOT"
2+
version = "0.13.12"
33
}
44

55
#

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ val yaml = project
112112
lazy val dependencies =
113113
new {
114114
val dxCommonVersion = "0.11.5"
115-
val dxApiVersion = "0.13.11"
115+
val dxApiVersion = "0.13.12"
116116
val typesafeVersion = "1.4.1"
117117
val sprayVersion = "1.3.6"
118118
val snakeyamlVersion = "2.3"

0 commit comments

Comments
 (0)