Fix nullptr exception

Signed-off-by: Bernardus Jansen <bernardus@bajansen.nl>
master
Bernardus Jansen 9 years ago
parent 8f1f1a133b
commit 0cfd6e8318
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/controller/MultiController.java

@ -182,7 +182,7 @@ public class MultiController extends MultiActionController {
Transport trans = session.getTransport(prot); Transport trans = session.getTransport(prot);
try { try {
if (props.get("mail." + prot + ".auth").equals("true")) { if (props.get("mail." + prot + ".auth") != null && props.get("mail." + prot + ".auth").equals("true")) {
trans.connect(settingsService.getSmtpServer(), settingsService.getSmtpUser(), settingsService.getSmtpPassword()); trans.connect(settingsService.getSmtpServer(), settingsService.getSmtpUser(), settingsService.getSmtpPassword());
} else { } else {
trans.connect(); trans.connect();

Loading…
Cancel
Save