Skip to content

Commit a6ff9e2

Browse files
committed
missing null check
1 parent a04e71d commit a6ff9e2

File tree

1 file changed

+1
-1
lines changed
  • clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/utils/retry

1 file changed

+1
-1
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/utils/retry/RetryStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Response intercept(Chain chain) throws IOException {
5959
continue;
6060
}
6161
String message = response.message();
62-
if (response.body()) {
62+
if (response.body() != null) {
6363
message = response.body().string();
6464
}
6565
throw new AlgoliaApiException(message, response.code());

0 commit comments

Comments
 (0)