Getting html string from OfficeMath throws NullPointerException

Hellow, Aspose Team.
I am using Aspose 20.10 jdk17 version in my project. I am trying to get HTML string from OfficeMath object:
public int visitOfficeMathStart(com.aspose.words.OfficeMath asposeOfficeMath) {
String mathML = asposeOfficeMath.toString(new HtmlSaveOptions());

}
This operation causes an exception:
java.lang.RuntimeException: java.lang.NullPointerException
at com.aspose.words.zz4W.zzz(Unknown Source)
at com.aspose.words.zz4W.zzZ(Unknown Source)
at com.aspose.words.zz6Z.zzZ(Unknown Source)
at com.aspose.words.zz6Z.zzZ(Unknown Source)
at com.aspose.words.zz6Z.zzY(Unknown Source)
at com.aspose.words.ShapeRenderer.(Unknown Source)
at com.aspose.words.ShapeBase.getShapeRenderer(Unknown Source)
at com.aspose.words.zzCT.zzZ(Unknown Source)
at com.aspose.words.zzCT.zzY(Unknown Source)
at com.aspose.words.zzCT.zzZ(Unknown Source)
at com.aspose.words.zz60.zzF(Unknown Source)
at com.aspose.words.zzYPC.zzX(Unknown Source)
at com.aspose.words.zzYPC.zzY(Unknown Source)
at com.aspose.words.zz3L.visitShapeStart(Unknown Source)
at com.aspose.words.Shape.zzZ(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Shape.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Paragraph.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Document.accept(Unknown Source)
at com.aspose.words.zz3L.zzX(Unknown Source)
at com.aspose.words.zzZQ1.zzYH(Unknown Source)
at com.aspose.words.Node.toString(Unknown Source)

Here is the word document: example.zip (15.7 KB)
It is a strange errors because when I remove the chart, the error does not occur.
Could you help me whit this error?

@skorpusova

We have logged this problem in our issue tracking system as WORDSNET-21470. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Thanks a lot ! It works now on version 21.2.0.

@skorpusova

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

The issues you have found earlier (filed as WORDSNET-21470) have been fixed in this Aspose.Words for .NET 21.2 update and this Aspose.Words for Java 21.2 update.