diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-10-29 23:20:35 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-10-29 23:20:35 +0000 |
commit | 9a6c48cfb2c46c84648b78d75ac9ceac4feaab58 (patch) | |
tree | 25dceb765dc8a051ab803954b7b795355107f348 | |
parent | 0da28d066b53ff4e2995d0fd5a32dbc73d2ca4de (diff) | |
download | poi-9a6c48cfb2c46c84648b78d75ac9ceac4feaab58.tar.gz poi-9a6c48cfb2c46c84648b78d75ac9ceac4feaab58.zip |
#58516 - Rare new aioobe in 3.13 on initialization of a handful of ppts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711380 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java | 1 |
1 files changed, 1 insertions, 0 deletions
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 76969a4713..79ca35caf7 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java @@ -1257,6 +1257,7 @@ public final class HSLFTextParagraph implements TextParagraph<HSLFShape,HSLFText int paraIdx = 0;
for (IndentProp p : paraStyles) {
for (int ccPara = 0, ccStyle = p.getCharactersCovered(); ccPara < ccStyle; paraIdx++) {
+ if (paraIdx >= paragraphs.size() || ccPara >= ccStyle-1) return;
HSLFTextParagraph para = paragraphs.get(paraIdx);
int len = 0;
for (HSLFTextRun trun : para.getTextRuns()) {
|