Apache Lucene open-source search software
check for AIOOBE
Noble Paul72cf7dc2f746
diff --git a/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.java b/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.javaindex cf54c400037..6fd3a5be31d 100644--- a/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.java+++ b/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.java@@ -458,6 +458,7 @@ public class Policy implements MapWriter {if (!isAllowed(e.getKey(), Hint.COLL)) continue;for (Map.Entry<String, List<Policy.ReplicaInfo>> shard : e.getValue().entrySet()) {if (!isAllowed(e.getKey(), Hint.SHARD)) continue;//todo fix+ if(shard.getValue() == null || shard.getValue().isEmpty()) continue;replicaList.add(new Pair<>(shard.getValue().get(0), r));}}