mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
null check bug fix
This commit is contained in:
parent
0092cb754c
commit
e4903c37b9
@ -98,6 +98,9 @@ public class HttpOp implements CycleOp {
|
|||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
JsonNode json = mapper.readTree(response.body());
|
JsonNode json = mapper.readTree(response.body());
|
||||||
|
|
||||||
|
if (json.get("hits") == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Iterable<JsonNode> hits = json.get("hits").get("hits");
|
Iterable<JsonNode> hits = json.get("hits").get("hits");
|
||||||
|
|
||||||
// get length from hits iterator
|
// get length from hits iterator
|
||||||
|
Loading…
Reference in New Issue
Block a user