mbien commented on code in PR #5922:
URL: https://github.com/apache/netbeans/pull/5922#discussion_r1224734551


##########
java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java:
##########
@@ -417,7 +420,11 @@ private boolean loadIndexingContext(final RepositoryInfo 
info) throws IOExceptio
         }
     }
 
-    private @CheckForNull IteratorSearchResponse repeatedPagedSearch(Query q, 
final List<IndexingContext> contexts, int count) throws IOException {
+    private @CheckForNull IteratorSearchResponse repeatedPagedSearch(Query q, 
IndexingContext context, int count) throws IOException {
+        return repeatedPagedSearch(q, List.of(context), count);

Review Comment:
   context is not allowed to be null. This serves also as early null check.
   
   If it would be null it would cause an exception in maven-indexer's 
[`DefaultSearchEngine`](https://github.com/apache/maven-indexer/blob/fbf7c0c7d305756092ba93e40d77c0a3f0ce7eab/indexer-core/src/main/java/org/apache/maven/index/DefaultSearchEngine.java#L328).



-- 
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]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to