Getting null pointer exception while saving the document

HI , When im trying to save the document with small amount of data it is generating the report but once the size of data increases i get following stack trace while saving the document using doc.save(“out.docx”):


Caused by: java.lang.NullPointerException
at com.aspose.words.zzYW5.zzZ(Unknown Source)
at com.aspose.words.zzYW5.zzw(Unknown Source)
at com.aspose.words.zzYW5.visitTableStart(Unknown Source)
at com.aspose.words.zz79.visitTableStart(Unknown Source)
at com.aspose.words.Table.zzZ(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Table.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Document.accept(Unknown Source)
at com.aspose.words.zz79.zzY(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)


Kindly assist .

Regards
Akhil Samnotra
Hi Akhil,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input document.
  • Please create a simple Java application (source code without compilation errors) that calls the shared methods and attach it here for testing.

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.