From: Andreas Beeker Date: Mon, 9 Nov 2015 21:37:10 +0000 (+0000) Subject: Fixed Off-by-one-Error which skipped paragraph styles X-Git-Tag: REL_3_14_BETA1~130 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e7b1036e1029d43cf52beeaff134b6e32719b266;p=poi.git Fixed Off-by-one-Error which skipped paragraph styles git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1713546 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java index f15cea2085..4fd78369c0 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java @@ -1272,7 +1272,7 @@ public final class HSLFTextParagraph implements TextParagraph= paragraphs.size() || ccPara >= ccStyle-1) return; + if (paraIdx >= paragraphs.size()) return; HSLFTextParagraph htp = paragraphs.get(paraIdx); TextPropCollection pCopy = new TextPropCollection(0, TextPropType.paragraph); pCopy.copy(p);