com.aspose.slides.BaseSlide.equals Error Exception in Code: Parameter Is Not Valid

22.3 version is OK (and it’s been working for a couple of years) but
22.4 calls to com.aspose.slides.BaseSlide.equals
can now throw an exception…

Error Exception in code: Parameter is not valid.
class com.aspose.slides.exceptions.ArgumentException: Parameter is not valid.
com.aspose.slides.internal.fs.if.do(Unknown Source)
com.aspose.slides.internal.fs.if.(Unknown Source)
com.aspose.slides.internal.fs.if.(Unknown Source)
com.aspose.slides.internal.fs.if.(Unknown Source)
com.aspose.slides.internal.fs.if.(Unknown Source)
com.aspose.slides.internal.cr.for.do(Unknown Source)
com.aspose.slides.internal.oh.double.do(Unknown Source)
com.aspose.slides.ImageCollection.if(Unknown Source)
com.aspose.slides.ImageCollection.do(Unknown Source)
com.aspose.slides.alj.do(Unknown Source)
com.aspose.slides.ais.do(Unknown Source)
com.aspose.slides.ais.do(Unknown Source)
com.aspose.slides.aij.do(Unknown Source)
com.aspose.slides.aio.do(Unknown Source)
com.aspose.slides.uf.do(Unknown Source)
com.aspose.slides.uf.do(Unknown Source)
com.aspose.slides.b9.do(Unknown Source)
com.aspose.slides.za.do(Unknown Source)
com.aspose.slides.aqx.do(Unknown Source)
com.aspose.slides.alk.do(Unknown Source)
com.aspose.slides.alk.do(Unknown Source)
com.aspose.slides.BaseSlide.do(Unknown Source)
com.aspose.slides.BaseSlide.equals(Unknown Source)

surely a call to com.aspose.slides.BaseSlide.equals(Unknown Source) should never throw an exception?
either the slides are equal or not? I’m hoping you can track the bug without me having to write a small amount a code and a simplified example without copyright issues in :slight_smile:

@JamesDriscoll,
Thank you for contacting support.

This is a public method, maybe that is why it can throw exceptions. Our developers assume that the error occurs while processing an image. Could you please share the presentation file?

not easily - I’ll have to do some testing to see if I can send something that is anonymous. Why would the exception be thrown when processing an image? either slide A is equal to slide B or it isn’t.
This is something that was introduced between 22.3 and 22.4 so I was hoping it would be easy for the developers to find rather than me having to jump though some more hoops (I’ve been using aspose since nov 2020 )

@JamesDriscoll,
I’ve added a ticket with ID SLIDESJAVA-38799 to our issue tracking system. We apologize for any inconvenience. Our development team will do their best to find the reason and resolve the issue. We will inform you of any progress.

1 Like

@JamesDriscoll,
Unfortunately, our developers were unable to resolve the issue. Please try isolating the error you are experiencing and share the following data and information:

  • presentation file
  • code example
  • OS version where the code was executed
  • JDK version in your app