Skip to content

Commit

Permalink
Add missed code
Browse files Browse the repository at this point in the history
  • Loading branch information
apmoriarty committed Dec 4, 2024
1 parent 8449998 commit 097a0af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected void rebuildFutureJexlNode(FutureJexlNode futureJexlNode) {

if (lookupCache != null && fieldsToTerms != null) {
String field = JexlASTHelper.getIdentifier(currentNode);
if (fieldsToTerms.get(field).isThresholdExceeded() || fieldsToTerms.get(field).isEmpty()) {
if (fieldsToTerms.containsKey(field) && (fieldsToTerms.get(field).isThresholdExceeded() || fieldsToTerms.get(field).isEmpty())) {
LookupCacheKey key = getKey(currentNode);
lookupCache.put(key, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ protected void rebuildFutureJexlNode(FutureJexlNode futureJexlNode) {

if (lookupCache != null) {
String field = JexlASTHelper.getIdentifier(currentNode);
if (fieldsToTerms.get(field).isThresholdExceeded() || fieldsToTerms.get(field).isEmpty()) {
if (fieldsToTerms.containsKey(field) && (fieldsToTerms.get(field).isThresholdExceeded() || fieldsToTerms.get(field).isEmpty())) {
LookupCacheKey key = getKey(currentNode);
lookupCache.put(key, false);
}
Expand Down

0 comments on commit 097a0af

Please sign in to comment.