BUGFIX-1000

This commit is contained in:
AFedasenka 2012-05-26 12:34:21 +02:00 committed by Tabaqui
parent 8ac1aea1b7
commit 3916c4c4ee

View file

@ -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();
}
}