when iterate through a List of JSONNODES like so
for(JsonNode result: results){
if (predicate==Predicate.GREATER_THAN && result.has("JarVersion")){
//gets in here even though 'JarVersion' is null
if(result.get("JarVersion").textValue().compareTo(version) > 0)
//fails here because nulls pass through
for some reason even though result.get("JarVersion") returns null, it passes the result.has() check.
Is there an issue with the has() function of this library?
I looked into it and on the interface all it is doing is results.get(fieldName) != null
, yet there are many null cases that get through (and break) my code
true
for explicitly added * null values ``` – sf8193 May 07 '19 at 17:05