From 8fc95e8b85a65106eac311098300b1f37c71bf3c Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sun, 16 Feb 2014 17:00:53 +0000 Subject: [PATCH] Sweeping is also needed for empty column-list ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568791 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java index 38bf2095e7..767fb6e0b6 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java @@ -55,9 +55,7 @@ public class ColumnHelper { CTCols aggregateCols = CTCols.Factory.newInstance(); List colsList = worksheet.getColsList(); - if (colsList == null || colsList.isEmpty()) { - return; - } + assert(colsList != null); for (CTCols cols : colsList) { for (CTCol col : cols.getColList()) {