hi Greg,
In the following response scenario if the filter key is not available in some node then I am getting null pointer exception. Could you please check this below?
1) Let's say given filter is like below
?fields=items[key=1]
2) Let's say response from service is like below. "key" element is missing in third node. We are trying to filter with "key=1". In this case , line number 80 is throwing null pointer exception as there is no key and value is null. We should return false in that case. What do you think?
https://github.com/gregwhitaker/catnap/blob/b637dd505b97894875f9e459aee6bb81570438d3/catnap-core/src/main/java/com/github/gregwhitaker/catnap/core/query/model/CatnapEqualityExpression.java#L80
hi Greg, In the following response scenario if the filter key is not available in some node then I am getting null pointer exception. Could you please check this below?
1) Let's say given filter is like below ?fields=items[key=1]
2) Let's say response from service is like below. "key" element is missing in third node. We are trying to filter with "key=1". In this case , line number 80 is throwing null pointer exception as there is no key and value is null. We should return false in that case. What do you think?
{"items": [ { "key": "1", "value": "v1" }, { "key": "2", "value": "v2" }, {"value": "v3"} ]}