From 5112fb2cc89151f78a9abf1f8b46075bdbc285bf Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Tue, 20 Mar 2007 14:59:29 +0000 Subject: [PATCH] fixed bug 41761: NPE when serializing a workbook with empty rows git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@520416 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/model/Sheet.java | 2 +- .../aggregates/RowRecordsAggregate.java | 2 +- .../poi/hssf/usermodel/TestHSSFSheet.java | 43 ++++++++++++++++--- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/poi/hssf/model/Sheet.java b/src/java/org/apache/poi/hssf/model/Sheet.java index 746c9348ad..140b5c1715 100644 --- a/src/java/org/apache/poi/hssf/model/Sheet.java +++ b/src/java/org/apache/poi/hssf/model/Sheet.java @@ -783,7 +783,7 @@ public class Sheet implements Model int dbCellOffset = 0; for (int block=0;block