Document.insertHtml throws exception when inserting HTML into Word document

Hello.
While evaluating latest version 24.10 , we encountered a problem inserting HTML content into Word document.
Below is the stack trace of the error:

Exception in thread "main" java.lang.RuntimeException: Aspose document problem inserting HTML content
	at InsertHtmlIntoWord.main(InsertHtmlIntoWord.java:53)
Caused by: java.lang.NullPointerException: Cannot invoke "com.aspose.words.Cell.getLastParagraph()" because the return value of "com.aspose.words.Paragraph.zzWod()" is null
	at com.aspose.words.zzXzX.zzZwv(Unknown Source)
	at com.aspose.words.zzXzu.zzZGb(Unknown Source)
	at com.aspose.words.zzXzu.zzZmL(Unknown Source)
	at com.aspose.words.zzXzu.zzZGb(Unknown Source)
	at com.aspose.words.zzXzX.zzVXQ(Unknown Source)
	at com.aspose.words.zzXzX.zzZGb(Unknown Source)
	at com.aspose.words.zzXzX.zzXJq(Unknown Source)
	at com.aspose.words.zzXzX.zzZGb(Unknown Source)
	at com.aspose.words.zzXzX.zzZGb(Unknown Source)
	at com.aspose.words.zzIX.zzWYt(Unknown Source)
	at com.aspose.words.DocumentBuilder.insertHtml(Unknown Source)
	at com.aspose.words.DocumentBuilder.insertHtml(Unknown Source)
	at InsertHtmlIntoWord.updateContentControl(InsertHtmlIntoWord.java:74)
	at InsertHtmlIntoWord.main(InsertHtmlIntoWord.java:44)

Note that there were no problem with the same input HTML when using version Aspose Words library 24.8
as well as version 24.1.0 that we currently use.

Attached is the archive containing the following:

  • EmptyDoc.docx - input blank word document;
  • PublicSansGrid_htmlContent.html - input HTML table to be inserted into Word;
  • DocWithEC_publicSansGrid_htmlContent24.8.docx - output after running sample program with Aspose.Words version 24.8;
  • TestInsertHtmlIntoWord.java - sample test program illustrating the issue

This issue occurs under both Linux 7 and Windows 11 OS.
Please let us know if you need additional information.
Is there any workaround that can be applied?
Thank you.
TestInsertHtmlIntoWord.zip (32.3 KB)

@oraspose
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27506

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hello team.
This issue WORDSNET-27506 ---- shows Status : Closed .
Does it mean it will be included in the new 24.11 release of Words?
Thank you.

@oraspose Yes, the fix will be included into the next 24.11 version of Aspose.Words. It will be published in a week or so.

The issues you have found earlier (filed as WORDSNET-27506) have been fixed in this Aspose.Words for Java 24.11 update.