dsmiley commented on a change in pull request #658:
URL: https://github.com/apache/solr/pull/658#discussion_r810448586



##########
File path: solr/core/src/java/org/apache/solr/search/DocSetQuery.java
##########
@@ -81,6 +81,9 @@ public Weight createWeight(IndexSearcher searcher, ScoreMode 
scoreMode, float bo
         return new ConstantScoreWeight(this, boost) {
             @Override
             public Scorer scorer(LeafReaderContext context) {
+                if (docSet == null) {

Review comment:
       How could docSet be null?  I think it can't; and if I'm right we should 
maybe even use `Objects.requireNonNull ` in the constructor




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

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



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

Reply via email to