[TEST] fixes NPE in RoutingTableTests
@@ -352,7 +352,7 @@ public class RoutingTableTests extends ESAllocationTestCase {
Set<String> insyncAids = shardTable.activeShards().stream().map(
shr -> shr.allocationId().getId()).collect(Collectors.toSet());
final ShardRouting primaryShard = shardTable.primaryShard();
- if (primaryShard.initializing() && shardRouting.recoverySource().getType() == RecoverySource.Type.EXISTING_STORE) {
+ if (primaryShard.initializing() && primaryShard.recoverySource().getType() == RecoverySource.Type.EXISTING_STORE) {
// simulate a primary was initialized based on aid
insyncAids.add(primaryShard.allocationId().getId());
}
