From 294e478f23bb4c66baa9d9ac343bcbb803406238 Mon Sep 17 00:00:00 2001 From: mguessan Date: Sun, 17 May 2009 22:25:31 +0000 Subject: [PATCH] Avoid nullpointerexception in Settings.setProperty git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@567 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/Settings.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/Settings.java b/src/java/davmail/Settings.java index 37d0a085..bc25f1ef 100644 --- a/src/java/davmail/Settings.java +++ b/src/java/davmail/Settings.java @@ -119,7 +119,11 @@ public class Settings { } public static synchronized void setProperty(String property, String value) { - SETTINGS.setProperty(property, value); + if (value != null) { + SETTINGS.setProperty(property, value); + } else { + SETTINGS.setProperty(property, ""); + } } public static synchronized int getIntProperty(String property) {