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 013954241..1609dcb5b 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()