addEmptySlide producing index out of bounds error

My code that calls addEmptySlide(0 used to work just fine, but now I’m getting this:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at com.aspose.slides.Paragraphs.get(SourceFile:44)
at com.aspose.slides.Slide.do(SourceFile:230)
at com.aspose.slides.Presentation.do(SourceFile:1492)
at com.aspose.slides.Presentation.cloneSlide(SourceFile:1639)
at com.aspose.slides.Presentation.addEmptySlide(SourceFile:2465)

I’m including aspose-slides-2.4.0.jar and aspose-metafiles-1.6.1-20100110.jar in the Eclipse settings for Java build path. Starting with a new Presentation object. No idea why this stopped working.

Hello Dear,

I have observed the issue shared by you and feel sorry to share that its an inconsistency in Aspose.Slides for Java. An issue with ID 20963 has already been added in our issue tracking system to further investigate and resolve the issue. This thread has also been linked with the issue, so that you may be automatically notified, once the issue is resolved.

We are sorry for your inconvenience,

Hello Dear,

You will be pleased to know that the specified issue of adding empty slide has been resolved. The hotfix version of Aspose.Slides for Java 2.4.2 has been shared in the attachment link here.

Thanks and Regards,

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


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Great, thanks.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan