https://issues.apache.org/ooo/show_bug.cgi?id=122871
hanya <hanya.r...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hanya.r...@gmail.com --- Comment #5 from hanya <hanya.r...@gmail.com> --- Created attachment 82023 --> https://issues.apache.org/ooo/attachment.cgi?id=82023&action=edit Patch to fix ArrayIndexOutOfBoundException when results over 100 In com.sun.star.help.HelpSearch.queryImpl method, when search result contains over spacified number for searcher.search( aQuery, 100 ) method, aHits.totalHits holds hit count but aHits.scoreDocs holds only specified number of results. For example, searching about term "MsgBox" in Basic context without "Find in heading only" results aHits.totalHits == 106 and aHits.scoreDocs.length == 100. So, ArrayIndexOutOfBoundException raised in the following line: > ScoreDoc aDoc = aHits.scoreDocs[iHit]; -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug. You are watching all bug changes.