Skip to content

Commit

Permalink
check nullValue instead of address. Since nullValue can only ma…
Browse files Browse the repository at this point in the history
…ke `address` null
  • Loading branch information
martijnvg committed Feb 24, 2025
1 parent 86a1aa0 commit 77c30b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,11 @@ protected void parseCreateField(DocumentParserContext context) throws IOExceptio
throw e;
}
}
if (address != null) {
if (nullValue != null) {
indexValue(context, address);
}
if (offsetsFieldName != null && context.isImmediateParentAnArray() && context.canAddIgnoredField()) {
if (address != null) {
if (nullValue != null) {
BytesRef sortableValue = new BytesRef(InetAddressPoint.encode(address));
context.getOffSetContext().recordOffset(offsetsFieldName, sortableValue);
} else {
Expand Down

0 comments on commit 77c30b1

Please sign in to comment.