aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgWaypoint.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/cgWaypoint.java')
-rw-r--r--main/src/cgeo/geocaching/cgWaypoint.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgWaypoint.java b/main/src/cgeo/geocaching/cgWaypoint.java
index 32cc526..72b15f7 100644
--- a/main/src/cgeo/geocaching/cgWaypoint.java
+++ b/main/src/cgeo/geocaching/cgWaypoint.java
@@ -86,7 +86,7 @@ public class cgWaypoint implements IWaypoint, Comparable<cgWaypoint> {
for (cgWaypoint old : oldPoints) {
if (old != null) {
boolean merged = false;
- if (old.name != null && old.name.length() > 0) {
+ if (old.name != null && !old.name.isEmpty()) {
for (cgWaypoint waypoint : newPoints) {
if (waypoint != null && waypoint.name != null) {
if (old.name.equalsIgnoreCase(waypoint.name)) {