Free Support Forum - aspose.com

NullPointerException while trying parse/save document

Hi.


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:
java.lang.NullPointerException
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 com.aspose.words.Document.save(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at T.resaveDoc(T.java:33)
at T.main(T.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

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