Free Support Forum - aspose.com

Problem with the clearContent method

Dear Laurence,

When calling the clearContent method for a large number of cells we receive the following exception:

java.lang.NullPointerException
at com.aspose.cells.Cell.h(Unknown Source)
at com.aspose.cells.Cell.clearContent(Unknown Source)
at com.te.base.util.excel.TEAsposeCell.clear(TEAsposeCell.java:135)

I will email you a file for which you can reproduce the problem by simply looping over all cells and calling the clearContent for each.

Thanks and best regards,
Ulf

Hi Ulf,

I forwarded your file to Warren. He will check it and reply you soon.

Hi Ulf,

Please try this fix.

Thanks! Your fix resolved the problem.

Best regards,
Ulf