Hi,
I’m facing an issue when updating the fields in one Word document.
To replicate the issue use the following template, load, and just update the fields.
Document doc = new Document(test.docx);
doc.updateFields();
I’m using aspose words java lastest version and the document used to perform the operation is the following test.docx (8.6 MB)
The logs output show the following error:
java.lang.NullPointerException
at com.aspose.words.zzX2.zzY(Unknown Source)
at com.aspose.words.zzYYJ.zzB(Unknown Source)
at com.aspose.words.zzYYJ.zzC(Unknown Source)
at com.aspose.words.zzYYJ.zzYGk(Unknown Source)
at com.aspose.words.zzYYJ.zzL(Unknown Source)
at com.aspose.words.zzYXP.zzJ(Unknown Source)
at com.aspose.words.zzYMY.zza(Unknown Source)
at com.aspose.words.zz3R.zzJ(Unknown Source)
at com.aspose.words.zz3S.zzZy2(Unknown Source)
at com.aspose.words.zzYYN.zzYGF(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.zzZYC.zzZrt(Unknown Source)
at com.aspose.words.zzZYD.zzEF(Unknown Source)
at com.aspose.words.zzZV2.zzXY(Unknown Source)
at com.aspose.words.zzZV2.zzZ(Unknown Source)
at com.aspose.words.zzZV2.zzYX(Unknown Source)
at com.aspose.words.Range.updateFields(Unknown Source)
at com.aspose.words.Document.updateFields(Unknown Source)
I can’t figure out why is this happen.
Kind regards,
Paulo Pereira