aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-08-12 12:28:13 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-08-12 12:28:13 +0200
commit1ff748b74770e8eba5fd823125a2947b1878d0c3 (patch)
tree5c4e0aacf9acbc0836ad66fc3e0b9c87d6e0d914 /main
parent26990de1b7dc2caa3e6212ca995df966f72621d0 (diff)
downloadcgeo-1ff748b74770e8eba5fd823125a2947b1878d0c3.zip
cgeo-1ff748b74770e8eba5fd823125a2947b1878d0c3.tar.gz
cgeo-1ff748b74770e8eba5fd823125a2947b1878d0c3.tar.bz2
Allow erasing of personal note on server
This is the "release" part of fix for #4163.
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java
index 60d7856..4ada4f9 100644
--- a/main/src/cgeo/geocaching/connector/gc/GCParser.java
+++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java
@@ -1986,7 +1986,7 @@ public abstract class GCParser {
try {
final JSONObject jo = new JSONObject()
.put("dto", (new JSONObject()
- .put("et", cache.getPersonalNote())
+ .put("et", StringUtils.defaultString(cache.getPersonalNote()))
.put("ut", userToken)));
final String uriSuffix = "SetUserCacheNote";