From 3916c4c4eeac87bca0d88bd2fb775d42fd7b78f6 Mon Sep 17 00:00:00 2001 From: AFedasenka Date: Sat, 26 May 2012 12:34:21 +0200 Subject: [PATCH] BUGFIX-1000 --- OsmAnd/src/net/osmand/plus/OsmandSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index e9ab79051f..367bbb79f2 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -386,7 +386,7 @@ public class OsmandSettings { @Override protected boolean setValue(SharedPreferences prefs, String val) { - return prefs.edit().putString(getId(), val.trim()).commit(); + return prefs.edit().putString(getId(), (val != null) ? val.trim() : val).commit(); } }