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

Free Support Forum - aspose.com

Bug Report (v5.2.1.0) : Object reference not set to an instance of an object

Bug Report (v5.2.1.0) : Object reference not set to an instance of an object.

If you open the attached file then re-save as rtf with no changes you get the error shown below and a blank doucment saved.

Aspose.Words Version: 5.2.1.0
Framework Version: 2.0.50727.42
Exception Message: Object reference not set to an instance of an object.
Stack Trace: at Aspose.Words.Tables.Cell.ደ(Int32 Ֆ)
at Aspose.Words.Tables.CellFormat.ࡌ(Int32 Ֆ)
at Aspose.Words.Tables.CellFormat.get_HorizontalMerge()
at Ք.㉝.VisitRowStart(Row row)
at Aspose.Words.Tables.Row.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ߜ(DocumentVisitor ԉ)
at Aspose.Words.Tables.Table.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ߜ(DocumentVisitor ԉ)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ߜ(DocumentVisitor ԉ)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ߜ(DocumentVisitor ԉ)
at Aspose.Words.Document.Accept(DocumentVisitor visitor)
at Ք.㉝.⬔(Document ୬, ᜲ ᘽ)
at Aspose.Words.Document.߀(Stream כ, String ג, SaveFormat ߁)
at Aspose.Words.Document.Save(String fileName, SaveFormat fileFormat)
at NonWordDoc.Form1.Button1_Click(Object sender, EventArgs e) in D:\Projects\Generis\UsefulTestApplications\AsposeDocumentTest\Form1.vb:line 105

Thanks

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

Thanks for your request. I managed to reproduce this issue on my side. I created new issue #5505 in our defect database. We will notify as soon as it is fixed.

Best regards.

The issues you have found earlier (filed as 5505) have been fixed in this update. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

The problem was that a header occurs inside a cell. Made our code resillient.