prevent index out of range exception
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3568e18a60
commit
d3d59c2096
@ -119,8 +119,8 @@ public abstract class AbstractWordConverter
|
|||||||
currentTableLevel, aliveField, block );
|
currentTableLevel, aliveField, block );
|
||||||
|
|
||||||
int continueAfter = aliveField.getEndOffset();
|
int continueAfter = aliveField.getEndOffset();
|
||||||
while ( range.getCharacterRun( c ).getEndOffset() <= continueAfter
|
while ( c < range.numCharacterRuns()
|
||||||
&& c < range.numCharacterRuns() )
|
&& range.getCharacterRun( c ).getEndOffset() <= continueAfter )
|
||||||
c++;
|
c++;
|
||||||
|
|
||||||
if ( c < range.numCharacterRuns() )
|
if ( c < range.numCharacterRuns() )
|
||||||
|
Loading…
Reference in New Issue
Block a user