Aspose.Slides Throws NullReferenceException when Saving a PPTX File in C#

Description

When I save a pptx file, it throws NullReferenceException.

Env

  • Aspose Slides 23.7 for .NET
  • Windows 10

Code

void Test()
{
	var doc=new Aspose.Slides.Presentation(@"C:\Users\Administrator\Desktop\test\1.pptx");
	doc.Save(@"C:\Users\Administrator\Desktop\test\out.pptx",Aspose.Slides.Export.SaveFormat.Pptx);
}

Error

image.png (38.1 KB)

Files

test.zip (4.5 MB)

@xucongli1989,
Thank you for reporting on the issue. I’ve reproduced the exception you described.

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): SLIDESNET-44108

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.

The issues you found earlier (filed as SLIDESNET-44108) have been fixed in Aspose.Slides for .NET 23.9 (ZIP, MSI).
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.