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
1 changed files with 5 additions and 1 deletions

View File

@ -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) {