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

Free Support Forum - aspose.com

Aspose.Slides for Java IndexOutOfBoundsException

The following method generates an IndexOutOfBoundsException when adding an empty slide

public void exportDetail(List data) throws Exception
{
// Retrieve the Aspose license
com.aspose.slides.License license = new com.aspose.slides.License();
ISCFile licenseFile = new ISCFile(Config.getGlobal().getPath("webRoot")+"/shared/Aspose.Slides.lic.xml");
license.setLicense(licenseFile.getInputStream());

// Initialize the presentation
Presentation pres = new Presentation();
Slide slide = pres.addEmptySlide();
}


11:42:53,406 ERROR [STDERR] java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
11:42:53,406 ERROR [STDERR] at java.util.ArrayList.RangeCheck(ArrayList.java:547)
11:42:53,406 ERROR [STDERR] at java.util.ArrayList.get(ArrayList.java:322)
11:42:53,406 ERROR [STDERR] at com.aspose.slides.Paragraphs.get(SourceFile:44)
11:42:53,406 ERROR [STDERR] at com.aspose.slides.Slide.do(SourceFile:230)
11:42:53,406 ERROR [STDERR] at com.aspose.slides.Presentation.do(SourceFile:1492)
11:42:53,406 ERROR [STDERR] at com.aspose.slides.Presentation.cloneSlide(SourceFile:1639)
11:42:53,406 ERROR [STDERR] at com.aspose.slides.Presentation.addEmptySlide(SourceFile:2465)
11:42:53,406 ERROR [STDERR] at com.genentech.smdi.webapps.smdi.dmi.SmdiDmi.exportDetail(SmdiDmi.java:918)

Hello Dear,

I have investigated the stack trace shared by you and it seems to be an inconsistency in Aspose.Slides for Java. An issue with ID 20963 has already been created in our issue tracking system to for investigation and resolution. 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,