litiliu opened a new issue, #10698:
URL: https://github.com/apache/dolphinscheduler/issues/10698

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   After user creating an email alert instance with mail.smtp.auth not enabled. 
 Then use that warning group(contain this email warning instance)  to send 
alert.But,  the email fail to send.
   <img width="560" alt="Screen Shot 2022-06-30 at 16 37 00" 
src="https://user-images.githubusercontent.com/38579068/176632286-7c359662-56e8-4f17-9bce-8a0b4069b950.png";>
   
   Which is caused by the unnecessary requireNonNull checking:
   <img width="1095" alt="Screen Shot 2022-06-30 at 16 38 42" 
src="https://user-images.githubusercontent.com/38579068/176632666-1f28c287-1e69-4f2b-9215-69cec76254b0.png";>
   
   
   
   
   ### What you expected to happen
   
   Successfully send email, when smtp.auth is not enabled.
   
   ### How to reproduce
   
   Creating an email alert instance with mail.smtp.auth not enabled.  Then use 
that warning group(contain this email warning instance)  to send alert.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.5
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to