]> source.dussan.org Git - poi.git/commitdiff
update assertion condition for case where empty PAPX appears at the start of document...
authorSergey Vladimirov <sergey@apache.org>
Tue, 23 Aug 2011 08:52:37 +0000 (08:52 +0000)
committerSergey Vladimirov <sergey@apache.org>
Tue, 23 Aug 2011 08:52:37 +0000 (08:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160587 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java

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