Skip to content

Commit

Permalink
Merge pull request #40695 from geoand/#39712
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier authored May 19, 2024
2 parents c3bf01e + 399b7a8 commit f020580
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static JsonObject getJsonObject(Response r) {
}
// With Redis 7.2 the response is a BULK (String) but using a nested array.
Buffer buffer = r.toBuffer();
if (buffer.toJson() instanceof JsonArray) {
if (buffer.toJsonValue() instanceof JsonArray) {
var array = buffer.toJsonArray();
if (array.size() == 0) {
return null;
Expand All @@ -127,7 +127,7 @@ static JsonArray getJsonArrayFromJsonGet(Response r) {
}
// With Redis 7.2 the response is a BULK (String) but using a nested array.
Buffer buffer = r.toBuffer();
if (buffer.toJson() instanceof JsonArray) {
if (buffer.toJsonValue() instanceof JsonArray) {
var array = buffer.toJsonArray();
if (array.size() == 0) {
return new JsonArray();
Expand Down

0 comments on commit f020580

Please sign in to comment.