This commit is contained in:
Redkale
2019-01-09 16:17:48 +08:00
parent e78a2da6c0
commit 5c7dd7d782

View File

@@ -145,6 +145,6 @@ public class Sheet<T> implements java.io.Serializable, Iterable<T> {
}
public <E> E[] toArray(IntFunction<E[]> generator) {
return (this.rows == null) ? new ArrayList<E>().toArray(generator.apply(0)) : this.rows.toArray(generator.apply(0));
return (this.rows == null) ? new ArrayList<E>().toArray(generator.apply(0)) : this.rows.toArray(generator.apply(this.rows.size()));
}
}