mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-02 05:19:19 -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();
|
||||
JsonNode json = mapper.readTree(response.body());
|
||||
|
||||
if (json.get("hits") == null) {
|
||||
return null;
|
||||
}
|
||||
Iterable<JsonNode> hits = json.get("hits").get("hits");
|
||||
|
||||
// get length from hits iterator
|
||||
|
Loading…
Reference in New Issue
Block a user