ArgumentOutOfRangeException Is Thrown when Reading PPTX File in Java

Please browse the files in the following package.
38111_14_1_11.pptx.zip (45.9 KB)
When I run the code, an ArgumentOutOfRangeException is thrown.

Presentation presentation = new Presentation(filePath);

The following is the error stack information:

    class com.aspose.slides.exceptions.ArgumentOutOfRangeException: index is less than zero or index is equal to or greater than Count
    Parameter name: index
    com.aspose.slides.Collections.Generic.SortedList$ThrowHelper.throwArgumentOutOfRangeException(Unknown Source)
    com.aspose.slides.Collections.Generic.SortedList.for(Unknown Source)
    com.aspose.slides.Collections.Generic.SortedList.do(Unknown Source)
    com.aspose.slides.Collections.Generic.SortedList$KeyList.get_Item(Unknown Source)
    com.aspose.slides.qo.do(Unknown Source)
    com.aspose.slides.qo.do(Unknown Source)
    com.aspose.slides.cp.do(Unknown Source)
    com.aspose.slides.aqk.do(Unknown Source)
    com.aspose.slides.aqk.do(Unknown Source)
    com.aspose.slides.aqk.do(Unknown Source)
    com.aspose.slides.aqk.do(Unknown Source)
    com.aspose.slides.aqk.do(Unknown Source)
    com.aspose.slides.aqk.do(Unknown Source)
    com.aspose.slides.f.do(Unknown Source)
    com.aspose.slides.f.do(Unknown Source)
    com.aspose.slides.f.do(Unknown Source)
    com.aspose.slides.asm.do(Unknown Source)
    com.aspose.slides.asm.do(Unknown Source)
    com.aspose.slides.amv.do(Unknown Source)
    com.aspose.slides.amc.byte(Unknown Source)
    com.aspose.slides.amc.do(Unknown Source)
    com.aspose.slides.Presentation.if(Unknown Source)
    com.aspose.slides.Presentation.do(Unknown Source)
    com.aspose.slides.Presentation.do(Unknown Source)
    com.aspose.slides.Presentation.do(Unknown Source)
    com.aspose.slides.Presentation.<init>(Unknown Source)

OS: macOS 13.0.1
JVM: OpenJDK 64-Bit Server VM (17.0.1+12-39, mixed mode, emulated-client, sharing)
Java: version 17.0.1, vendor Oracle Corporation
sdk: aspose.slides-22.11-fx

If there is a way to avoid mistakes, please tell me.

@oscarstar,
Thank you for reporting the issue.

I’ve reproduced the problem with reading the presentation and added a ticket with ID SLIDESJAVA-39052 to our issue-tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when a new release of Aspose.Slides with a fix is published.

The issues you found earlier (filed as SLIDESJAVA-39052) have been fixed in Aspose.Slides for Java 23.1 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.