NullReference

Hi,

In a production environment FetchMessage(string uniqueId) is throwing NullReferenceException, but I can’t reproduce in test environment. That’s the stack trace of the error:
System.NullReferenceException: Object reference not set to an instance of an object.
at #=zb250QYMCPFuX71Wdi3zOw2HXP4Y1.#=zI6Sdilw=(IAsyncResult #=zqu3CpHA=)
at #=zb250QYMCPFuX71Wdi3zOw2HXP4Y1.#=zI6Sdilw=()
at Aspose.Email.Clients.Imap.ImapClient.#=zAu1$fSDVb$uR(IAsyncResult #=zqu3CpHA=)
at Aspose.Email.Clients.Imap.ImapClient.FetchMessage(String uniqueId)

I’m using .NET 4.8 and Aspose.Mail 22.12. I’ve added more info in the logs to help in diagnostic, but I can’t publish in production until september.

Hello @mtomas,

Unfortunately, the issue can be challenging to diagnose, especially if it doesn’t reproduce in a test environment.
Could you please check if the issue occurs with the latest version of Aspose.Email? Additionally, does the exception occur only for a specific message ID?

Thank you.