aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgData.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/cgData.java')
-rw-r--r--main/src/cgeo/geocaching/cgData.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index ba95ad4..37b20ad 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -5,7 +5,6 @@ import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.WaypointType;
import cgeo.geocaching.files.LocalStorage;
import cgeo.geocaching.geopoint.Geopoint;
-import cgeo.geocaching.geopoint.Geopoint.MalformedCoordinateException;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
@@ -1465,14 +1464,7 @@ public class cgData {
return null;
}
- try {
- return new Geopoint(cursor.getDouble(indexLat), cursor.getDouble(indexLon));
- } catch (MalformedCoordinateException e) {
- // TODO: check whether the exception should be returned to the caller instead,
- // as it might want to remove an invalid geopoint from the database.
- Log.e(Settings.tag, "cannot parse geopoint from database: " + e.getMessage());
- return null;
- }
+ return new Geopoint(cursor.getDouble(indexLat), cursor.getDouble(indexLon));
}
/**