From 5c7dd7d782ed1cbbf8f581ac105d765e2803ac56 Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Wed, 9 Jan 2019 16:17:48 +0800 Subject: [PATCH] --- src/org/redkale/util/Sheet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/redkale/util/Sheet.java b/src/org/redkale/util/Sheet.java index c0374961e..f05f803af 100644 --- a/src/org/redkale/util/Sheet.java +++ b/src/org/redkale/util/Sheet.java @@ -145,6 +145,6 @@ public class Sheet implements java.io.Serializable, Iterable { } public E[] toArray(IntFunction generator) { - return (this.rows == null) ? new ArrayList().toArray(generator.apply(0)) : this.rows.toArray(generator.apply(0)); + return (this.rows == null) ? new ArrayList().toArray(generator.apply(0)) : this.rows.toArray(generator.apply(this.rows.size())); } }