Free Support Forum - aspose.com

Aspose.Slides PptxReadException when create presentation with comments

I created a Presentation object from pptx file with comments and got an Exception.
Detail information, source code and presentation file are listed below.

OS: Windows 8.1 x64
Target Framework: .NET Core 2.2
Aspose.Slides.NET package version: 20.1.0
Source code:

using Aspose.Slides;
using Aspose.Slides.Export;

namespace AsposeWordsLeak
{
  class Program
  {
    static void Main(string[] args)
    {
      Presentation presentation = new Presentation(@"pres.PPTX");
      presentation.Save(@"presentation.html", SaveFormat.Html);
    }
  }
}

Exception:

Aspose.Slides.PptxReadException
HResult=0x80131500
Message=Object reference not set to an instance of an object.
Source=Aspose.Slides
StackTrace:
at .(Presentation , Stream , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(String , Boolean )
at Aspose.Program.Main(String[] args) in D:\work\Aspose\Aspose\Program.cs:line 10

Inner Exception 1:
NullReferenceException: Object reference not set to an instance of an object.

Presentation file: pres.zip (31.0 KB)

@directum,

I have worked with the presentation file shared and an issue with ID SLIDESNET-41710 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as SLIDESNET-41710) have been fixed in this update.