aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-01-26 20:20:23 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-01-26 20:20:23 +0100
commit90bf6cf84dbda53c6a7c1e28545e8e531bd7d13b (patch)
tree94c23912e10eb3395132ae1db5e3eca09a3487db
parent7ba8c0bc66fe17c2071fc9b527de65a62c6136f3 (diff)
downloadcgeo-90bf6cf84dbda53c6a7c1e28545e8e531bd7d13b.zip
cgeo-90bf6cf84dbda53c6a7c1e28545e8e531bd7d13b.tar.gz
cgeo-90bf6cf84dbda53c6a7c1e28545e8e531bd7d13b.tar.bz2
avoid NPE with user name
happened in creation of LogEntry on emulator without any login stored
-rw-r--r--main/src/cgeo/geocaching/settings/Settings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/settings/Settings.java b/main/src/cgeo/geocaching/settings/Settings.java
index ad15d81..0b54fe1 100644
--- a/main/src/cgeo/geocaching/settings/Settings.java
+++ b/main/src/cgeo/geocaching/settings/Settings.java
@@ -337,7 +337,7 @@ public class Settings {
}
public static String getUsername() {
- return getString(R.string.pref_username, null);
+ return getString(R.string.pref_username, StringUtils.EMPTY);
}
public static boolean isGCConnectorActive() {