Hi Aspose Support Team,
This post is actually to report 2 bugs.
We are currently working with tables in Aspose. We are storing some info in ParagraphEx objects and then inserting them in CellEx objects of a given table.
This is where the first bug occurs. We have noticed that, by default, a ParagraphEx has it’s Indentation and Alignment values set to NaN and NOT_DEFINED by default. But, after adding a paragraph to a cell, these values get changed to 0.0 (float) and LEFT. What’s worse, you cannot change them explicitly back to NaN or NOT_DEFINED (again, respectively).
Now, later we are going to configure the table’s content, namely, it’s paragraph’s indentations and alignments. We have noticed that, if the values of these properties are checked more than 2 times, an Exception is thrown This seems to only be caused by values that not have been EXPLICITLY set.
This is the stack trace that we get:
java.lang.ArrayIndexOutOfBoundsException: 2
at com.aspose.slides.pptx.CellEx.try(Unknown Source)
at com.aspose.slides.pptx.TextFrameEx.if(Unknown Source)
at com.aspose.slides.pptx.ParagraphEx.new(Unknown Source)
at com.aspose.slides.pptx.ParagraphEx.getCachedProps(Unknown Source)
at com.aspose.slides.pptx.ParagraphEx.getIndent(Unknown Source)
…
Can you help us out?