Skip to content

Commit

Permalink
avoid NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
idegtiarenko committed Nov 9, 2023
1 parent 8814e7c commit d82d3c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.settings.SettingsException;
import org.elasticsearch.common.unit.ByteSizeValue;
import org.elasticsearch.snapshots.SnapshotShardSizeInfo;

import java.util.Map;

Expand Down Expand Up @@ -146,7 +147,7 @@ public static long sizeOfUnaccountedShards(
routing,
Math.max(routing.getExpectedShardSize(), 0L),
clusterInfo,
null,
SnapshotShardSizeInfo.EMPTY,
metadata,
routingTable
);
Expand Down

0 comments on commit d82d3c7

Please sign in to comment.