diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java index 39adc25f6..8419de6e4 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java @@ -141,8 +141,9 @@ public class XSSFTable extends POIXMLDocumentPart { commonTokens = tokens; } else { - int maxLenght = commonTokens.length>tokens.length? tokens.length:commonTokens.length; - for (int i =0; i subCommonTokens = Arrays.asList(commonTokens).subList(0, i);