Convert Word Document to HTML while Managing java.lang.NullPointerException

Hi, I’m getting this nullpointer when trying to save a document to HTML format

java.lang.NullPointerException
at com.aspose.words.WindowsNativeCall.(Unknown Source)
at com.aspose.words.WindowsNativeCall.getInstance(Unknown
at com.aspose.words.PrinterMetrics.(Unknown Source)
at com.aspose.words.zzZMV.zzZA9(Unknown Source)
at com.aspose.words.zzZMV.zzZ(Unknown Source)
at com.aspose.words.zzZMV.zzZH(Unknown Source)
at com.aspose.words.zzZMV.zzZAd(Unknown Source)
at com.aspose.words.zzZMV.zzZCs(Unknown Source)
at com.aspose.words.zzZN7.hashCode(Unknown Source)
at com.aspose.words.zzZMV.hashCode(Unknown Source)
at java.util.HashMap.hash(HashMap.java:338)
at java.util.HashMap.get(HashMap.java:556)
at com.aspose.words.zzZMV.zzX(Unknown Source)
at com.aspose.words.zzZ28.zzYr(Unknown Source)
at com.aspose.words.zz9S.zz0V(Unknown Source)
at com.aspose.words.zz9S.moveNext(Unknown Source)
at com.aspose.words.zzZPI.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.zz4Z.perform(Unknown Source)
at com.aspose.words.zz50.zzKP(Unknown Source)
at com.aspose.words.zz26.zzZ1(Unknown Source)
at com.aspose.words.zz26.zzZ(Unknown Source)
at com.aspose.words.zz26.zz7(Unknown Source)
at com.aspose.words.Document.zz2x(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzQ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)

Hi Charles,

Thanks for your inquiry. Please upgrade to latest version (15.6.0) of Aspose.Words from the following link:

In case the problem still remains, please attach your input Word document here for testing. We will investigate the issue on our end and provide you more information.

Best regards,

we are already using 15.6.0, unfortunately is not possible for me to provide you with the file

Hi Charles,

Thanks for your inquiry. Unfortunately, it is difficult to say what the problem is without the document and sample source code. We need this document and source code to reproduce the problem on our end.

It is safe to attach files in the forum. If you attach your document here, only you and Aspose staff members can download it. Also you can send the file via private message. In order to send a private message with attachment, please click on my name and find “Message” button.

Convert Word Document to HTML while Managing java.lang.NullPointerException

Best regards,