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

Free Support Forum - aspose.com

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

                                <br><!--[if gte mso 9]><xml>

<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Calibri","sans-serif";}

<![endif]–>

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.