Exception when saving file (Aspose Cells for JAVA)

Dear Warren,

We receive the following exception when trying to save a workbook opened from the attached template.
java.lang.NullPointerException
at com.aspose.cells.s.x(Unknown Source)
at com.aspose.cells.s.(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.te.base.util.excel.TEAsposeWorkbook.write(TEAsposeWorkbook.java:207)
at com.te.base.util.excel.TEAsposeWorkbook.write(TEAsposeWorkbook.java:177)
at com.te.base.io.TEDocumentWriter.saveInRepository(TEDocumentWriter.java:178)

The exception is not thrown if we save the workbook immediately after having opened it. But when we have written the values and formats of a couple of cells we receive the exception when calling save.

Since the cells are written in a complex framework I cannot give you the specific details, or a small example that reproduces the problem.

This does not happen with an old version of Aspose Cells.

Best regards,
Ulf Ekström

Hi Ulf,

Do you mean the exception is only thrown with the lastest fix?Which old version works fine?Do you only write formats and data?

Dear Warren,

We have now been able to reproduce the problem with a small example. The bug appears after having called the clear() method on a cell that contains a formula. I hope this information helps you to correct the bug.

Best regards,
Ulf

Hi Ulf,

Please try the fix in <A href="</A>.</P> <P> </P>

Problem solved. Thanks a lot!