From 6990d7762080408b5f374703aeda2911db735686 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 25 Jul 2011 11:19:50 +0000 Subject: [PATCH] fix array index out of bound exception git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150631 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/converter/AbstractWordConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java index 013954241c..1609dcb5be 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java @@ -140,7 +140,7 @@ public abstract class AbstractWordConverter for ( int r1 = currentRowIndex + 1; r1 < numRows; r1++ ) { TableRow nextRow = table.getRow( r1 ); - if ( nextRow.numCells() < currentColumnIndex ) + if ( currentColumnIndex >= nextRow.numCells() ) break; TableCell nextCell = nextRow.getCell( currentColumnIndex ); if ( !nextCell.isVerticallyMerged()