Certain document throws a null reference exception

Hello,

We have a certain document (as attached) which seems to be throwing a null reference exception when removing unused resources and then updating the page layout.

Here is the code used to reproduce this issue:

var document = new Document("testFile.docx");
document.RemoveUnusedResources();
document.UpdatePageLayout();

InternalID: 27496

Thank you!

Regards,
Stanescu Jean-Alexandru
Junior Developer

Hi Stanescu,

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-12223. 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.

Hello,

Do you have an update on this?

Hi Stanescu,

Thanks for being patient. Regarding WORDSNET-12223, our product team has completed the analysis of this issue and the root cause has been identified. Currently, they are on the final stage of reviewing/testing all code changes that were done in the scope of this issue. We will inform you via this thread as soon as your issue is resolved. We apologize for any inconvenience.

Best regards,

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

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

Hello,
This issue is still reproducible. Can you please verify this?

Best regards,
Adriana Minea
Software Developer
IBM Romania

Hi Adriana,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 16.2.0 and have not found the shared issue. Please use Aspose.Words for .NET 16.2.0 and let us know if you have any more queries.