We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Slides for .NET 14.4 - presentation.Slides.InsertClone of a slide with Video throws an exception:Exception Details: System.NullReferenceException: Object reference not set to an instance of an object

Hello,



While trying to insert a clone of a slide with a video file to a presentation, I encountered an exception thrown:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

To illustrate the issue I have a sample presentation with 1 slide with video in it ( file attached).
When trying to insert a clone of Slide 1 , I am getting the described error.

Here is a snippet of my code:
string sourceFile = “c:\temp\Slide1-2.pptx”;
var presentation = new Presentation(sourceFile);
var slide1 = presentation.Slides[0];
presentation.Slides.InsertClone(0, slide1);

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
.ˆƒ.e(˜” zentry) +59
.ˆƒ.e() +62
.ˆƒ.get_Data() +38
„.™.—a(– package, IPresentation presentation, ˜ deserializationContext) +524
„.—.ea(IPresentation destPresentation, ILayoutSlide destLayout, ISlide sourceSlide) +1647
Aspose.Slides.SlideCollection.AddClone(ISlide sourceSlide) +276
Aspose.Slides.SlideCollection.InsertClone(Int32 index, ISlide sourceSlide) +50



Aspose 14.4 for .NET 4.0 dll is used.
pptx test file is attached.
Please help to resolve it!

Thank you,

Natasha Turchak
Sr.Developer at Viscira

Hi Natasha,

I have worked with the presentation file shared by you and have been able o observe the issue specified. An issue with ID SLIDESNET-35470 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 automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.