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

Free Support Forum - aspose.com

RTF Document Throws NullReferenceException in Aspose.Words.Tables.Cell

I am an exception when trying to load an RTF file into a Document.

Here is the exception:

==== Inner Exception ====
Name: NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
   at    .(Cell )
   at    .(Row )
   at    .(Row )
   at    . ()
   at    .(    )
   at    .(    )
   at    .      (    )
   at ​  .(    )
   at ​  .      ()
   at Aspose.Words.Document.(Stream , LoadOptions )

HResult: 0x80004003

Source: Aspose.Words

Here is my code snippet:

using(var stream = attachment.OpenDataStream(cancellationToken))
{
     var loadOptions = new LoadOptions { LoadFormat = LoadFormat.Rtf };

     var document = new Document(stream, loadOptions);
}

Here is the RTF file with the issue:
RtfWithIssue.zip (34.4 KB)

@puremass Thank you for reporting this problem to us. I have managed to reproduce it on my side. For the sake of correction the issue has been logged as WORDSNET-23471. We will keep you informed and let you know once it is resolved.

Any idea what an ETA would be on a fix for this? My boss informed me we do have paid support. Once I have access to paid support I will post there. Does paid support help fast track fixes?

@puremass Currently it is difficult to give you an estimate. We will investigate the issue deeply and provide you more information.
From my experience, exception issues are fixed quite fast.

The issues you have found earlier (filed as WORDSNET-23471) have been fixed in this Aspose.Words for .NET 22.3 update also available on NuGet.