Free Support Forum -

NullPointerException while trying parse/save document


Recently i’ve found a problem trying to parse/save (without modification) document.
NPE raises.

Reproduced on:
- Aspose.Words.Java.11.6.0
- Aspose.Words.Java.11.8.0

Source format: doc
Target format: doc

Stacktrace from Aspose.Words.Java.11.8.0:
at com.aspose.words.W5.L(Unknown Source)
at com.aspose.words.W5.Ã(Unknown Source)
at com.aspose.words.L.Y(Unknown Source)
at com.aspose.words.ZV6.H(Unknown Source)
at com.aspose.words.NG.Ã(Unknown Source)
at com.aspose.words.VD.qR(Unknown Source)
at com.aspose.words.VD.qX(Unknown Source)
at com.aspose.words.VD.Ã(Unknown Source)
at com.aspose.words.Document.Ã(Unknown Source)
at Source)
at Source)
at T.resaveDoc(
at T.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.intellij.rt.execution.application.AppMain.main(

Invoking code:
public class T2 {
public static void main(String[] args) throws Exception {
new Document(“err/npe.doc”).save(“err/npe_saved.doc”);

Doc npe.doc attached.

Cause code is obfuscated i failed to workaround it.
Could you please provide a workaround or an ETA for fix/next release?

Hi Yohan,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSJAVA-635 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJAVA-635) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan