diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java index 60960dacfb..1f79d4001a 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java @@ -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 )