update assertion condition for case where empty PAPX appears at the start of document, i.e. [0; 0)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160587 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-08-23 08:52:37 +00:00
parent 1cd10ba583
commit 93156c819e
1 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,8 @@ public class PAPBinTable
{ {
PAPX papx = oldPapxSortedByEndPos.get( papxIndex ); PAPX papx = oldPapxSortedByEndPos.get( papxIndex );
assert papxIndex + 1 == oldPapxSortedByEndPos.size() assert startInclusive == 0
|| papxIndex + 1 == oldPapxSortedByEndPos.size()
|| papx.getEnd() > startInclusive; || papx.getEnd() > startInclusive;
if ( papx.getEnd() - 1 > charIndex ) if ( papx.getEnd() - 1 > charIndex )