commons-email
commons-email copied to clipboard
EMAIL-184: Should throw EmailException if email provided is null
Should throw EmailException if email provided is null. Right now NPE is being encountered.
(https://issues.apache.org/jira/projects/EMAIL/issues/EMAIL-184)
@markt-asf can you please help me. I am not able to understand the reason for which the build is failing
@michael-o Can you please check if this PR looks good to you? Thank you.
I am not fully convinced here. What happens with your patch when you provide null
for mail?
If some of the argument must not be blank/null, it should be handled by classes like this: https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/Validate.html
The method contract should precisely describe when null
is allowed and when not.
Closing, no reply, and no unit test.