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:
parent
a08ebb6732
commit
294e478f23
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user