mirror of https://github.com/apache/poi.git
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:
parent
9014b07d8f
commit
6990d77620
|
@ -140,7 +140,7 @@ public abstract class AbstractWordConverter
|
||||||
for ( int r1 = currentRowIndex + 1; r1 < numRows; r1++ )
|
for ( int r1 = currentRowIndex + 1; r1 < numRows; r1++ )
|
||||||
{
|
{
|
||||||
TableRow nextRow = table.getRow( r1 );
|
TableRow nextRow = table.getRow( r1 );
|
||||||
if ( nextRow.numCells() < currentColumnIndex )
|
if ( currentColumnIndex >= nextRow.numCells() )
|
||||||
break;
|
break;
|
||||||
TableCell nextCell = nextRow.getCell( currentColumnIndex );
|
TableCell nextCell = nextRow.getCell( currentColumnIndex );
|
||||||
if ( !nextCell.isVerticallyMerged()
|
if ( !nextCell.isVerticallyMerged()
|
||||||
|
|
Loading…
Reference in New Issue