Aspose.Slides Gives NullReferenceException when Saving a PowerPoint Presentation

Hi,
Just got an upgrade to Aspose slides, so migrating from V18 upto V23.
However when saving the file, I get a null ref exception.
This problem looks like it was introduced in V22.5.0. ( As previous versions did not generate this exception)
Here is the exception generated from V23.10.0

System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Aspose.Slides
StackTrace:
at .(IMarker ,  ,  )
at .(IChartSeries , e ,  ,  )
at .(IChart ,  ,  )
at e.(IChart ,  ,  )
at e.(IChart , e ,  ,  )
at e.(IChart ,  , e )
at e.(IChart ,  , e )
at e.(IShape ,  , e ,  )
at e.(IGroupShape ,  , e ,  )
at .(IBaseSlide ,  , e )
at .(ISlide )
at .(e , ISlide ,  )
at .(Presentation , Stream ,  , IPptxOptions , InterruptionToken )
at Aspose.Slides.Presentation.(Stream ,  , IPptxOptions )
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)
at AsposeHelper.SlidesHelper.SavePresentationWithChecks(Presentation presentation, String fileName, Boolean launchOnComplete) in *****SlidesHelper.cs:line 715

Any help to what is possibly wrong would be gratefully recieved
Thank you
David Connell

@David_Connell,
Thank you for contacting support.

To investigate the case, we need more details. Please share the following files and information:

  • sample presentation file (you can zip the file and upload an archive here)
  • code example that reproduces the exception
  • OS version on which the code was executed
  • .NET target platform in your app

Hi there Andrey,
Thank you for getting back to me.
I have worked out that the issue seemed to be around setting a marker on series when the chart type did not have WithMarkers eg setting this
destSeries.Marker.Symbol = MarkerStyleType.None
on a ClusteredBar ie destSeries.Type equals ClusteredBar
and where typeof(destSeries) is Aspose.Slides.Charts.ChartSeries
This also makes some sense from your stack dump.
Thank you
David Connell

@David_Connell,
If I understand you correctly, the issue has been resolved on your end. Could you please confirm?

Yes things are now good wrt to Aspose, it can be closed

@David_Connell,
We are glad to know that. Thank you for using Aspose.Slides.