Aspose.Words PDF Save thrown ‘object reference not set to an instance of an object’ Issue

Hi Team,

I’m seeing “[NullReferenceException: Object reference not set to an instance of an object.]” issue while creating the a word document and save to pdf, Which uses few content controls and conditions. content control will yield values and write in the document if the condition against it was matched.

we used the below aspose versions are:

Aspose.Words.14.12.0
Aspose.Pdf.8.2.0

Noticing below mentoned error while trying to generate a document.
Herewith I’m attaching relevant sample project. Could you please execute it and provide us the solution.

[NullReferenceException: Object reference not set to an instance of an object.]
      .(Cell , Int32 ) +60
      .(Cell ) +36
      .(Table ) +238
      .(Table ) +64
      .(Table ) +349
      .(Table ) +666
      .VisitTableStart(Table ) +52
   Aspose.Words.Tables.Table.r3ka8zscesabkstb24kjjv9sml9wq7pw  (DocumentVisitor ) +39
   Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor) +62
   Aspose.Words.Tables.Table.Accept(DocumentVisitor visitor) +36
   Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor) +98
   Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor) +172
   Aspose.Words.Body.Accept(DocumentVisitor visitor) +36
   Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor) +98
   Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor) +172
   Aspose.Words.Section.Accept(DocumentVisitor visitor) +36
   Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor) +98
   Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor) +172
   Aspose.Words.Document.Accept(DocumentVisitor visitor) +37
      .(    ) +816
   ​  .(Document ,     ) +229
   Aspose.Words.Document.UpdatePageLayout() +85
      .     () +82
      .(    ) +156
      .(    ,     ) +128
      .(Node ,     ) +54
      .(Node ) +97
   Aspose.Words.Document.() +85
   Aspose.Words.Document.(    , SaveOptions ) +226
   Aspose.Words.Document.(Stream , String , SaveOptions ) +640
   Aspose.Words.Document.Save(Stream stream, SaveOptions saveOptions) +124
   Aspose.Words.Document.Save(Stream stream, SaveFormat saveFormat) +78
   AsposeIssue.Default.btn_Click(Object sender, EventArgs e) in d:\AsposeIssue\AsposeIssue\Default.aspx.cs:96
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9553594
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

Thanks,

AsposeIssue.zip (337.2 KB)

We attached the sample project without aspose dlls in bin folder.
Please use the aspose dlls Aspose.Words.14.12.0 and Aspose.Pdf.8.2.0 versions to bin folder and execute the application.

@smani,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16768. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@tahir.manzoor

Thanks for reverting back to me.
Could you please keep me informed on the root cause of this issue.
Is there a way I can see “WORDSNET-16768” to track the progress.

@smani,

Currently, this issue is pending for analysis. Once the analysis of this issue is completed, we will then share the root cause of this issue with you.

There is no public access to our issue tracking system. So you cannot check the status of this issue there. We will inform you via this forum thread once your issue is resolved.

2 posts were split to a new topic: Exception ‘object reference not set to an instance of an object’ Issue

A post was split to a new topic: ‘object reference not set to an instance of an object’ exception