Product:
Spire.Office for .NET Standard
Version:
10.2.0
License Type:
SITE OEM
Description:
We encountered a NullReferenceException when calling UpdateTableOfContents on a document.
The issue occurs when we generate a document with a large amount of content and then update the table of contents.
We have also upgraded to the latest version, but the issue still occurs.
Exception details:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Spire.Doc
StackTrace:
at spr㘚.춷(spr尝 A_0)
Additional Information:
Due to our company's security policy, we are unable to share the source document, document content, or any customer data as attachments.
Please let us know what information would be most helpful for troubleshooting this issue.
Questions:
1. Is there any limitation on document size or the amount of content when using UpdateTableOfContents?
2. Are there any known scenarios that could cause this exception?
3. What information or debugging steps would you recommend so that we can identify the root cause in our code?
4. Since we cannot provide the affected document, could you advise what additional information would help narrow down the root cause?