1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-02-28 09:21:49 -05:00

Avoid nullpointerexception in Settings.setProperty

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@567 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-05-17 22:25:31 +00:00
parent a08ebb6732
commit 294e478f23

View File

@ -119,7 +119,11 @@ public class Settings {
} }
public static synchronized void setProperty(String property, String value) { 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) { public static synchronized int getIntProperty(String property) {