We are having an error converting a docx document with letters and a SmartArt. The version we are using is 18.9.0.
The error is given when executing the updateTableLayout method and the trace is:
Exception in thread “main” java.io.IOException: java.lang.NullPointerException
at com.test.ConvertToPdf.save (ConvertToPdf.java:44)
at com.test.ConvertToPdf.main (ConvertToPdf.java:51)
Caused by: java.lang.NullPointerException
at com.aspose.words.zzEC.getHidden (Unknown Source)
at com.aspose.words.ShapeBase.getHidden (Unknown Source)
at com.aspose.words.zzYX8.getHidden (Unknown Source)
at com.aspose.words.zzYWN.commit (Unknown Source)
at com.aspose.words.zz94.commit (Unknown Source)
at com.aspose.words.zz94.zzJ (Unknown Source)
at com.aspose.words.zz95.zz4n (Unknown Source)
at com.aspose.words.zzZMT.zzZ (Unknown Source)
at com.aspose.words.Document.updatePageLayout (Unknown Source)
at com.test.ConvertToPdf.save (ConvertToPdf.java:37)
… 1 more
Or if it is deleted when executing save ()
Exception in thread “main” java.io.IOException: java.lang.NullPointerException
at com.test.ConvertToPdf.save(ConvertToPdf.java:43)
at com.test.ConvertToPdf.main(ConvertToPdf.java:50)
Caused by: java.lang.NullPointerException
at com.aspose.words.zzEC.getHidden(Unknown Source)
at com.aspose.words.ShapeBase.getHidden(Unknown Source)
at com.aspose.words.zzYX8.getHidden(Unknown Source)
at com.aspose.words.zzYWN.commit(Unknown Source)
at com.aspose.words.zz94.commit(Unknown Source)
at com.aspose.words.zz94.zzJ(Unknown Source)
at com.aspose.words.zz95.zz4n(Unknown Source)
at com.aspose.words.zzZMT.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzXu(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.zz0G.zzZ(Unknown Source)
at com.aspose.words.zzZH5.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at com.test.ConvertToPdf.save(ConvertToPdf.java:38)
… 1 more
I attached a zip with a test program and the test document
Aspose.zip (3.6 MB)