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

Free Support Forum - aspose.com

Error-Object reference not set to an instance of an object

Hi,
I occasionally get the following error when loading a mailMessage instance from file.
com.aspose.email.system.exceptions.NullReferenceException: Object reference not set to an instance of an object.
at com.aspose.email.internal.b.ap.b(Unknown Source)
at com.aspose.email.qk.b(Unknown Source)
at com.aspose.email.qk.a(Unknown Source)
at com.aspose.email.qk.interpret(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at com.aspose.email.client.impl.AsposeApis.getMailMessageFromFile(AsposeApis.java:34)
Please find attached the file used to reproduce the error
Thanks,
Sadhana

Hi Sadhana,

Thank you for writing to Aspose support team.

I have tested this issue with the latest version of Aspose.Email for Java 4.3.0 but I am afraid to share that I could not face any such exception as mentioned by you. The MSG file is loaded without any issue. Could you please try it with this latest version and let us know your feedback? Please share your sample code with us in case the issue still persists. We’ll look into it and assist you further.