NullReferenceException when adding an attachment

0 votes
asked Mar 25, 2014 by obartelt (820 points)
edited Jul 9, 2014

There is a NullReferenceException occurring when you try to add a text/plain attachment to a MailMessage with the option DoNotPreloadAttachments set.

The bug/exception is in MimeEntity.RemoveBomFromBodyBeginning (body.Content is null).

For the moment, I've disabled DoNotPreloadAttachments and it works fine, but please fix it, thanks!

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Mar 25, 2014 by Tomas Knopp (58,880 points)
edited Jul 9, 2014
 
Best answer

UPDATE The fix has been released as a part of release 2014R2.


Thank you for the bug report.

I have published a trial version of the hotfix which addresses this issue. Please test it and let us know whether the problem is fixed.

If you have an active Rebex component licence, please send us the licence info to support@rebex.net and I will send you the full non-expiring version as well.

commented Mar 26, 2014 by obartelt (820 points)
edited Mar 26, 2014

seems to work, thanks for fixing it so quickly!

commented Jul 9, 2014 by Tomas Knopp (58,880 points)
edited Jul 9, 2014

The fix has been released as a part of release 2014R2.

...