Using Aspose words for java version 21.12
I upgraded recently from 17.3.0 to 21.12 and for a particular report this exception happens when calling the updateFields() method on the document.
Any suggestions for workaround or versions that does not have this issue?
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.base/java.util.Objects.checkIndex(Objects.java:359)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at com.aspose.words.ListLevelCollection.get(Unknown Source)
at com.aspose.words.ListLevelCollection.zzZYg(Unknown Source)
at com.aspose.words.List.zzl3(Unknown Source)
at com.aspose.words.ListCollection.zzZp8(Unknown Source)
at com.aspose.words.Paragraph.zzZhV(Unknown Source)
at com.aspose.words.Paragraph.fetchInheritedParaAttr(Unknown Source)
at com.aspose.words.ParagraphFormat.fetchInheritedShadingAttr(Unknown Source)
at com.aspose.words.Shading.zzZM1(Unknown Source)
at com.aspose.words.Shading.getTexture(Unknown Source)
at com.aspose.words.zzW40.zzVR4(Unknown Source)
at com.aspose.words.zzW40.visitParagraphStart(Unknown Source)
at com.aspose.words.Paragraph.zzZp8(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Paragraph.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Cell.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Row.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Table.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Document.accept(Unknown Source)
at com.aspose.words.zzW40.zzWxF(Unknown Source)
at com.aspose.words.zzZ9c.zzYVX(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.zzWlQ.zzVUt(Unknown Source)
at com.aspose.words.zzhL.zzYuK(Unknown Source)
at com.aspose.words.zzWU9.zza9(Unknown Source)
at com.aspose.words.zzWU9.zzZqK(Unknown Source)
at com.aspose.words.zzWU9.zzZp8(Unknown Source)
at com.aspose.words.zzWU9.zzXEq(Unknown Source)
at com.aspose.words.Range.updateFields(Unknown Source)
at com.aspose.words.Document.updateFields(Unknown Source)