gpc / grails-mail

The Grails Mail Plugin
http://grails.org/plugin/mail
Apache License 2.0
45 stars 85 forks source link

Fixed assertion check to allow headers to be empty #46

Closed chris13524 closed 2 years ago

chris13524 commented 5 years ago

The assertion for the headers DLS field checks to see if the map is not empty, but then throws the error "headers cannot be null". I believe this assertion is in error and it should use Assert.notNull() instead. This allows the passing of empty header lists and in addition produces a correct error message.

Note that I have not tested this change.

sbglasius commented 2 years ago

If this is still desired functionality, please raise you PR here: https://github.com/grails3-plugins/mail as this repository will be archived momentarily