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()) {