You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geaflow.apache.org by "SYaoJun (via GitHub)" <gi...@apache.org> on 2026/03/06 14:41:31 UTC

[PR] fix:Add check for empty search results to prevent array out of bounds [geaflow]

SYaoJun opened a new pull request, #769:
URL: https://github.com/apache/geaflow/pull/769

   ### What changes were proposed in this pull request?
   <!--Please describe the major changes for this PR-->
   
   Directly accessing index 0 carries a risk.
   It is better to check that the length is greater than zero in advance.
   
   ```java
   Document firstDoc = searcher.doc(topDocs.scoreDocs[0].doc);
   ```
   
   ### How was this PR tested?
   - [x] Tests have Added for the changes
   - [ ] Production environment verified
   


-- 
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-unsubscribe@geaflow.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@geaflow.apache.org
For additional commands, e-mail: issues-help@geaflow.apache.org


Re: [PR] fix:Add check for empty search results to prevent array out of bounds [geaflow]

Posted by "Leomrlin (via GitHub)" <gi...@apache.org>.
Leomrlin commented on PR #769:
URL: https://github.com/apache/geaflow/pull/769#issuecomment-4028301125

   It looks like this PR might be conflicting with the one your just merged recently. Could you take a look and fix it when you have a moment? @SYaoJun 


-- 
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-unsubscribe@geaflow.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@geaflow.apache.org
For additional commands, e-mail: issues-help@geaflow.apache.org


Re: [PR] fix:Add check for empty search results to prevent array out of bounds [geaflow]

Posted by "Leomrlin (via GitHub)" <gi...@apache.org>.
Leomrlin merged PR #769:
URL: https://github.com/apache/geaflow/pull/769


-- 
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-unsubscribe@geaflow.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@geaflow.apache.org
For additional commands, e-mail: issues-help@geaflow.apache.org