diff --git a/src/main/java/org/jlib/container/storage/capacity/AbstractSplitCapacityStrategy.java b/src/main/java/org/jlib/container/storage/capacity/AbstractSplitCapacityStrategy.java index 86530637..f251fa0b 100644 --- a/src/main/java/org/jlib/container/storage/capacity/AbstractSplitCapacityStrategy.java +++ b/src/main/java/org/jlib/container/storage/capacity/AbstractSplitCapacityStrategy.java @@ -39,11 +39,11 @@ public void ensureSplitCapacity(final int splitIndex, final int splitCapacity) throws InvalidIndexException { ensureIndexValid(splitIndex); - ensureCapacityValid(splitCapacity); - if (splitCapacity == 0) return; + ensureCapacityValid(splitCapacity); + safeEnsureSplitCapacity(splitIndex, splitCapacity); getContentIndexRange().incrementMaximum(splitCapacity);