mikemccand commented on code in PR #12926:
URL: https://github.com/apache/lucene/pull/12926#discussion_r1424442691


##########
lucene/codecs/src/java/org/apache/lucene/codecs/memory/DirectPostingsFormat.java:
##########
@@ -1119,12 +1122,14 @@ public DirectIntersectTermsEnum(CompiledAutomaton 
compiled, BytesRef startTerm)
             }
           }
 
-          final int termOffset = termOffsets[termOrd];
-          final int termLen = termOffsets[1 + termOrd] - termOffset;
+          if (termOrd >= 0) {

Review Comment:
   Nice catch!!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to