diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-01-26 20:20:23 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-01-26 20:20:23 +0100 |
commit | 90bf6cf84dbda53c6a7c1e28545e8e531bd7d13b (patch) | |
tree | 94c23912e10eb3395132ae1db5e3eca09a3487db | |
parent | 7ba8c0bc66fe17c2071fc9b527de65a62c6136f3 (diff) | |
download | cgeo-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.java | 2 |
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() { |