Merge branch '1.2.x'

This commit is contained in:
Andy Wilkinson
2018-06-25 17:07:45 +01:00

View File

@@ -84,11 +84,8 @@ class JsonContentHandler implements ContentHandler {
try {
ExtractedField extracted = this.fieldProcessor.extract(candidate.getPath(),
payload);
if (extracted.getValue() instanceof Collection
&& ((Collection<?>) extracted.getValue()).isEmpty()) {
return true;
}
return false;
return extracted.getValue() instanceof Collection
&& ((Collection<?>) extracted.getValue()).isEmpty();
}
catch (FieldDoesNotExistException ex) {
return true;