Free Support Forum - aspose.com

Slide cloning error when having slides with tables in the PPT to clone

Hi,

I’ve got the following and similar errors, when truying to clone slides and the PPT, that has the clone sources in it has tables with empty cells:

Caused by: java.lang.NullPointerException

at com.aspose.slides.Table.char(SourceFile:2106)

at com.aspose.slides.Rectangle.char(SourceFile:203)

at com.aspose.slides.Shape.boolean(SourceFile:2279)

at com.aspose.slides.Presentation.if(SourceFile:3691)

at com.aspose.slides.Slide.do(SourceFile:521)

at com.aspose.slides.Presentation.do(SourceFile:1440)

at com.aspose.slides.Presentation.cloneSlide(SourceFile:1511)



I’ve got another error for a unknown reason:

I didn’t do anything with color at all in my code, just created a PPT to coy slides with tables from:



Caused by: com.aspose.slides.PptEditException: Slide cloning error.

at com.aspose.slides.Presentation.cloneSlide(SourceFile:1515)

at com.aspose.slides.Presentation.cloneSlide(SourceFile:1547)

… 5 more

Caused by: java.lang.IllegalArgumentException: Color parameter outside of expected range: Alpha

at java.awt.Color.testColorValueRange(Color.java:298)

at java.awt.Color.(Color.java:382)

at com.aspose.slides.obfuscated.sk.do(SourceFile:16)

at com.aspose.slides.FillFormat.getForeColor(SourceFile:349)

at com.aspose.slides.TextFrame.new(SourceFile:747)

at com.aspose.slides.TextFrame.case(SourceFile:798)

at com.aspose.slides.Table.char(SourceFile:2106)

at com.aspose.slides.Rectangle.char(SourceFile:203)

at com.aspose.slides.Shape.boolean(SourceFile:2279)

at com.aspose.slides.Presentation.if(SourceFile:3691)

at com.aspose.slides.Slide.do(SourceFile:521)

at com.aspose.slides.Presentation.do(SourceFile:1440)

at com.aspose.slides.Presentation.cloneSlide(SourceFile:1511)



It is !!! URGENT !!! to at least know the reason and get a workaround. We’re working in a large scale project with high visibility.

Hello,

Could you please write version number of Aspose.Slides for Java you use. It would be great to get also source presentations and code which is used for slides cloning.

Thank you,

Hi, this is a slide, that causes the NPE.



Caused by: com.aspose.slides.PptEditException: Slide cloning error.

at com.aspose.slides.Presentation.cloneSlide(SourceFile:1515)

at com.aspose.slides.Presentation.cloneSlide(SourceFile:1547)

… 5 more

Caused by: java.lang.NullPointerException

at com.aspose.slides.Table.char(SourceFile:2106)

at com.aspose.slides.Rectangle.char(SourceFile:203)

at com.aspose.slides.Shape.boolean(SourceFile:2279)

at com.aspose.slides.Presentation.if(SourceFile:3691)

at com.aspose.slides.Slide.do(SourceFile:521)

at com.aspose.slides.Presentation.do(SourceFile:1440)

at com.aspose.slides.Presentation.cloneSlide(SourceFile:1511)

… 6 more

Hi,

Table on this slide is broken. If you try to click on the text in the table, you can notice that bottom border of the table lies somewhere in the middle of bottom cells. As a result Aspose.Slides can't read table and recalculate parameters of cells.
Problem can be fixed by opening presentation in PowerPoint, changing text in any cell of the table and resaving the ppt file.