From 0cfd6e8318cd5fd5fdbab16603fed4cc8fe9f1d7 Mon Sep 17 00:00:00 2001 From: Bernardus Jansen Date: Sat, 21 May 2016 18:57:47 +0200 Subject: [PATCH] Fix nullptr exception Signed-off-by: Bernardus Jansen --- .../java/org/libresonic/player/controller/MultiController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/controller/MultiController.java b/libresonic-main/src/main/java/org/libresonic/player/controller/MultiController.java index d03137e2..52baad91 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/controller/MultiController.java +++ b/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); 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()); } else { trans.connect();