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

Free Support Forum - aspose.com

UpdateFields causes ArgumentNullException

Hi,

I have the following attached document, test.docx. On a system where the Regional Settings is set on French (France), the following piece of code throws ArgumentNullException:

var document = new Document(“test.docx”);
document.UpdateFields();

The complete stack trace is System.ArgumentNullException: Key cannot be null.
Parameter name: key
at System.Collections.Hashtable.get_Item(Object key)
at x4adf554d20d941a6.x4e2f8bff72d83f71.x84448f134fcddce5(x398b3bd0acd94b61 xd7e5673853e47af4, Hashtable x9883c720593ff2cd
)
at x4adf554d20d941a6.x4e2f8bff72d83f71.x17e48e42e094d16c(xa268fdb9ca040dde xd07ce4b74c5774a7)
at x4adf554d20d941a6.x4e2f8bff72d83f71.xc3819e13f60dd8e6()
at xfbd1009a0cbb9842.xfedf115fd9c03862.x9652dd403d2a3873()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xc55471c0f1365312()
at xfbd1009a0cbb9842.xfedf115fd9c03862.x384c03e4298b53bf(Node xda5bf54deb817e37)
at Aspose.Words.Document.UpdateFields()

The version of Aspose.Words I am using is 13.12.0.0.

Thank you,
Bogdan Ungureanu

Hi Bogdan,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9707. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-9707) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.