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