fix array index out of bound exception

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-25 11:19:50 +00:00
parent e209244316
commit efdd335f77
1 changed files with 1 additions and 1 deletions

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