From e7b1036e1029d43cf52beeaff134b6e32719b266 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Mon, 9 Nov 2015 21:37:10 +0000 Subject: [PATCH] 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 --- .../src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5