#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
This commit is contained in:
Andreas Beeker 2015-10-29 23:20:35 +00:00
parent 0da28d066b
commit 9a6c48cfb2
1 changed files with 1 additions and 0 deletions

View File

@ -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()) {