gf2121 commented on code in PR #14494:
URL: https://github.com/apache/lucene/pull/14494#discussion_r2074972349


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene103/blocktree/TrieReader.java:
##########
@@ -190,9 +218,19 @@ Node lookupChild(int targetLabel, Node parent, Node child) 
throws IOException {
       return null;
     }
 
+    int lookUpLabel;
+    if (labelMap == null) {
+      lookUpLabel = targetLabel;
+    } else {
+      lookUpLabel = labelMap[targetLabel];
+      if (lookUpLabel == -1) {

Review Comment:
   This is on the reader side, we could be looking for a label that does not 
exist in this trie.



-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to