We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

NullPointer when calling save when trying to fill form fields

Caused by: java.lang.NullPointerException
at com.aspose.pdf.internal.p584.z30.m4(Unknown Source)
at com.aspose.pdf.internal.p616.z4.m1(Unknown Source)
at com.aspose.pdf.internal.p616.z4.m2(Unknown Source)
at com.aspose.pdf.internal.p616.z4.m1(Unknown Source)
at com.aspose.pdf.internal.p616.z4.m1(Unknown Source)
at com.aspose.pdf.internal.p614.z18.m1(Unknown Source)
at com.aspose.pdf.internal.p614.z16.m1(Unknown Source)
at com.aspose.pdf.internal.p532.z12.m1(Unknown Source)
at com.aspose.pdf.ADocument.saveInternal(Unknown Source)
at com.aspose.pdf.Document.saveInternal(Unknown Source)
at com.aspose.pdf.ADocument$1.m1(Unknown Source)
at com.aspose.pdf.internal.p493.z2.m2(Unknown Source)
at com.aspose.pdf.internal.p493.z3.m1(Unknown Source)
at com.aspose.pdf.ADocument.save(Unknown Source)
at com.aspose.pdf.Document.save(Unknown Source)
at com.sustain.pdfforms.utils.PdfFormUtils.mergeFdf(PdfFormUtils.java:118)
at com.sustain.document.template.AsposePdfDocGenerator.generatePDF(AsposePdfDocGenerator.java:419)
at com.sustain.document.template.AsposePdfDocGenerator.generateDocFromTemplate(AsposePdfDocGenerator.java:153)
… 92 more

@jezerinac,
Kindly send us the complete details of the use case, including source PDF and code snippet. We will investigate and share our findings with you. Your response is awaited.

Best Regards,
Imran Rafique