cpoerschke commented on a change in pull request #325:
URL: https://github.com/apache/solr/pull/325#discussion_r721993569



##########
File path: solr/core/src/java/org/apache/solr/cloud/api/collections/Assign.java
##########
@@ -180,7 +180,7 @@ private static int defaultCounterValue(DocCollection 
collection, boolean newColl
     if (newCollection) return 0;
 
     int defaultValue;
-    if (collection.getSlice(shard) != null && 
collection.getSlice(shard).getReplicas().isEmpty()) {
+    if (collection == null || collection.getSlice(shard) != null && 
collection.getSlice(shard).getReplicas().isEmpty()) {

Review comment:
       ```suggestion
       if (collection.getSlice(shard) != null && 
collection.getSlice(shard).getReplicas().isEmpty()) {
   ```
   
   now that line 180 has the null check.




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

Reply via email to