After converting pptx to pdf adding additional pages throwing NPE

We have a requirement to convert pptx file to pdf and then add few pages to the converted pdf.
In the first page when iam adding more tables the below error message is throw while saving the pdf.

java.lang.NullPointerException: null
** at com.aspose.pdf.Page.lj(Unknown Source)**
** at com.aspose.pdf.Page.lI(Unknown Source)**
** at com.aspose.pdf.Page.lf(Unknown Source)**
** at com.aspose.pdf.Page.lv(Unknown Source)**
** at com.aspose.pdf.ADocument.processParagraphs(Unknown Source)**
** at com.aspose.pdf.Document.processParagraphs(Unknown Source)**
** at com.aspose.pdf.ADocument.lf(Unknown Source)**
** at com.aspose.pdf.ADocument.lf(Unknown Source)**
** at com.aspose.pdf.ADocument.save(Unknown Source)**
** at com.aspose.pdf.Document.save(Unknown Source)**

Please advise ASAP.

@SravanDevarai

Would you please share your source and output documents for our reference? Also, please share the complete sample code snippet so that we can test the scenario in our environment and address it accordingly.

@asad.ali Thanks for responding. I found the issue and resolved myself.
Sorry for the late reply.

@SravanDevarai

Its nice to know that you were able to resolve your issue. Please feel free to create a new topic in case you face any other issues.