Skip to content

Commit

Permalink
bug: fix response body null bug #13
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Oct 10, 2022
1 parent 5e86099 commit c389fb9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -107,6 +107,6 @@ public List<byte[]> request(HttpClient.ResponseReceiver<?> responseReceiver, URI
});
}).block();
//noinspection ConstantConditions
return List.of(bytes);
return bytes == null ? Collections.emptyList() : List.of(bytes);
}
}

0 comments on commit c389fb9

Please sign in to comment.