NullPointerException Is Thrown When Loading a Presentation File in Java

Hello,

Since 25.8 (inclusive) version, I am not able to instantiate a lot of presentation files. Reason:
Caused by: java.lang.NullPointerException: Cannot invoke "com.aspose.slides.ms.System.Xml.t2.getLocalName()" because the return value of "com.aspose.slides.ms.System.Xml.n8.d6(int)" is null

Here is the test code for reproduction:

@org.junit.Test
    public void forum() throws Exception {

        java.lang.String presentationsDirAbsolutePath = "${absolute_path_to_extracted_zip}";

        java.nio.file.Files.list(new java.io.File(presentationsDirAbsolutePath).toPath()).forEach(x -> {
            try (java.io.InputStream presentationInputStream = new java.io.FileInputStream(x.toFile())){
                new Presentation(presentationInputStream).dispose();
            } catch (java.io.IOException e) {
                throw new java.lang.RuntimeException(e);
            }
        });
}

Link to presentations directory zip (valid until Apr 8, 2026.).

Please evaluate for fixing.

Kind regards,
Zeljko

@zpredojevic,
Thank you for contacting free support. Unfortunately, I can’t access the file via the link you provided. Could you please share a link to the file stored in another location (Google Drive, Dropbox, etc.)?

@andrey.potapov How about this?

@zpredojevic,
Thank you for the sample files. I have reproduced the problem where a NullPointerException is thrown when loading the presentation files with Aspose.Slides. We apologize for any inconvenience caused.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39810

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Great, thank You!

[380]

@zpredojevic,
Thank you for helping make Aspose.Slides better.