]> source.dussan.org Git - poi.git/commitdiff
fix array index out of bound exception
authorSergey Vladimirov <sergey@apache.org>
Mon, 25 Jul 2011 11:19:50 +0000 (11:19 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 25 Jul 2011 11:19:50 +0000 (11:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150631 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java

index 013954241cf2a00af0a1116ae37fc7c695c28183..1609dcb5be8c4befafaba8c5c65aba3a738c500b 100644 (file)
@@ -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()