diff --git a/server/src/main/java/org/elasticsearch/cluster/InternalClusterInfoService.java b/server/src/main/java/org/elasticsearch/cluster/InternalClusterInfoService.java index 5b74a8c9d0924..d55ac0b185a68 100644 --- a/server/src/main/java/org/elasticsearch/cluster/InternalClusterInfoService.java +++ b/server/src/main/java/org/elasticsearch/cluster/InternalClusterInfoService.java @@ -331,6 +331,9 @@ static void buildShardLevelInfo(Logger logger, ShardStats[] stats, ImmutableOpen newShardRoutingToDataPath.put(shardRouting, s.getDataPath()); final StoreStats storeStats = s.getStats().getStore(); + if (storeStats == null) { + continue; + } final long size = storeStats.sizeInBytes(); final long reserved = storeStats.getReservedSize().getBytes();