Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-39094

Index out of bounds exception when

XMLWordPrintable

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      When trying to import a Word document into Confluence that contains custom bullet points added to MS Word, you may encounter this exception:

      java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
      	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      	at java.util.ArrayList.get(ArrayList.java:322)
      	at com.aspose.words.kd.dy(Unknown Source)
      	at com.aspose.words.List.aF(Unknown Source)
      	at com.aspose.words.ListFormat.getListLevel(Unknown Source)
      	at com.benryan.dom.Doc2Wiki.visitParagraphStart(Doc2Wiki.java:453)
      	at com.aspose.words.Paragraph.accept(Unknown Source)
      	at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
      	at com.aspose.words.Body.accept(Unknown Source)
      	at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
      	at com.aspose.words.Section.accept(Unknown Source)
      	at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
      

      I have attached an example file that just contains bullet points that should trigger the exception.

      Workaround

      1. Select all of the text in your document.
      2. Go to Format >> Bullets and Numbering...
      3. Choose one of the default bullet or numbering types that ships with MS Word.
      4. Save the document and attempt a new import into Confluence.

            Unassigned Unassigned
            alaskowski Adam Laskowski (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: