Aspose.Slides for .NET 22.2 Throws an Object Null Reference Exception

Aspose.Slide 22.2 throws an object null reference exception.

A customer of our reported an issue they were facing when they were trying to process a presentation file. This file has a single empty slide with a single comment. When trying to use this file with Aspose code “at first steps” it throws an object null reference exception.

Here is the stack trace for it.
StackTrace:

   at Aspose.Slides. ​ .(Presentation , Stream , InterruptionToken )
   at Aspose.Slides.Presentation.(Stream , Boolean )
   at Aspose.Slides.Presentation.(Stream , Boolean )
   at Aspose.Slides.Presentation.(Stream )
   at Aspose.Slides.Presentation..ctor(Stream stream, LoadOptions loadOptions)

image.png (23.9 KB)

We have created a sample project that you can use to reproduce the issue, Aspose-40.

@vikram.venugopal,
Thank you for contacting support.

I’ve reproduced the exception with Aspose.Slides 22.2 but the error is gone in version 23.1. Please use the latest version of Aspose.Slides for .NET.

Thanks for the quick response @Andrey_Potapov.