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

Free Support Forum - aspose.com

Null reference exception when updating Word document fields

Hello,


I am using Aspose.Words 2011.02.05 and calling Aspose.Words.Document.UpdateFields() on a document. For certain documents I get the following exception:

System.NullReferenceException: Object reference not set to an instance of an object.
at x2a6f63b6650e76c4.x9322ca348f66fbd2.xaf9b8dc2dc1ced67(Cell xe6de5e5fa2d44af5)
at x2a6f63b6650e76c4.x9322ca348f66fbd2.x3494e22b9d135f56(xa7ef704c7557cbae x4be5a34ade30ae6b)
at x2a6f63b6650e76c4.x3e270ab1f00c767a.x3494e22b9d135f56(xa7ef704c7557cbae x4be5a34ade30ae6b)
at x2a6f63b6650e76c4.xc4d9903a188c1793.xb1de1ba20faeeff8(x496b40ebe5ff5626 x9d881d126e4b3919)
at x2a6f63b6650e76c4.x6d929209cd800011.x308cb2f3483de2a6(x12e7545fad3ccc9b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xef7c7014677e653f.x83bcdf1790545fdb()
at Aspose.Words.Fields.Field.x295cb4a1df7a5add(x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x4e3cfc222c92cda7(Field xe01ae93d9fe5a880, x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xbf9ddf72e1283af9.x18dfca7c5fd2402f()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdd6cf0348a23f220(xcf417e2db4fe9ed3 xe00c282e1a49fcfb)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x384c03e4298b53bf()
at Aspose.Words.Range.UpdateFields()
at Aspose.Words.Document.UpdateFields()

Attached is an sample document to reproduce. Is this a known issue? Thank you.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

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


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