We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

One note document causes NullPointer

Hi,


We have a document that opens in OneNote 2016, but causes a NullPointer when opening it with Aspose.

Caused by: java.lang.NullPointerException
at com.aspose.note.i.b(Unknown Source)
at com.aspose.note.i.a(Unknown Source)
at com.aspose.note.i.c(Unknown Source)
at com.aspose.note.k.a(Unknown Source)
at com.aspose.note.Document.a(Unknown Source)
at com.aspose.note.Document.(Unknown Source)
at com.aspose.note.Document.(Unknown Source)
at com.aspose.note.Document.(Unknown Source)

The client says that if they re-save the document Aspose can open it. So it sounds like either it has a problem or its a strange format. In any case it would be good to not fail with such an error in these circumstances.

Regards
Nick

Hi Nick,


Thank you for contacting Aspose support team.

Could you please send us your sample onenote files before and after saving with OneNote 2016. It will help us to re-produce the scenario and provide assistance accordingly.

Hi,


Sorry for not providing a sample in the initial report. There were issues with confidential data.

Attached is a document giving the same error.

Regards
Nick

Hi Nick,


Could you please confirm if you have attached correct sample files? We can only find the index file .onetoc2 in the attachment you have sent along with reply.