- Row index counts up from zero, data provider size counts up from one, as one would expect. If the two match we are already past the available range.tags/8.10.0.alpha1
@@ -4390,7 +4390,7 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, | |||
Objects.requireNonNull(destination, | |||
"ScrollDestination can not be null"); | |||
if (row > getDataCommunicator().getDataProviderSize()) { | |||
if (row >= getDataCommunicator().getDataProviderSize()) { | |||
throw new IllegalArgumentException("Row outside dataProvider size"); | |||
} | |||