We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975a670 commit ab61f5fCopy full SHA for ab61f5f
src/main/java/run/ikaros/server/service/NotifyServiceImpl.java
@@ -59,7 +59,7 @@ public void mailTest(NotifyMailTestRequest notifyMailTestRequest) throws Messagi
59
@Override
60
public void afterPropertiesSet() throws Exception {
61
OptionNotifyDTO optionNotifyDTO = optionService.getOptionNotifyDTO();
62
- if (optionNotifyDTO.getMailEnable()) {
+ if (optionNotifyDTO.getMailEnable() != null && optionNotifyDTO.getMailEnable()) {
63
mailSender = new JavaMailSenderImpl();
64
mailSender.setHost(optionNotifyDTO.getMailSmtpHost());
65
mailSender.setPort(optionNotifyDTO.getMailSmtpPort());
0 commit comments