aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/ec/ECConnector.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-12-17 10:41:07 +0100
committerBananeweizen <bananeweizen@gmx.de>2013-12-17 10:41:07 +0100
commite6f7585487ef3bc8d2e8e8157d7c962842448004 (patch)
tree6f5c655d8af123a41444302f9ee79f896e068187 /main/src/cgeo/geocaching/connector/ec/ECConnector.java
parentadbd735682a267289c88350ec92f73fd0753f3f3 (diff)
downloadcgeo-e6f7585487ef3bc8d2e8e8157d7c962842448004.zip
cgeo-e6f7585487ef3bc8d2e8e8157d7c962842448004.tar.gz
cgeo-e6f7585487ef3bc8d2e8e8157d7c962842448004.tar.bz2
fix findbugs issues
Diffstat (limited to 'main/src/cgeo/geocaching/connector/ec/ECConnector.java')
-rw-r--r--main/src/cgeo/geocaching/connector/ec/ECConnector.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/connector/ec/ECConnector.java b/main/src/cgeo/geocaching/connector/ec/ECConnector.java
index 2aff7e9..2535c61 100644
--- a/main/src/cgeo/geocaching/connector/ec/ECConnector.java
+++ b/main/src/cgeo/geocaching/connector/ec/ECConnector.java
@@ -79,7 +79,9 @@ public class ECConnector extends AbstractConnector implements ISearchByGeocode,
@Override
public SearchResult searchByGeocode(final @Nullable String geocode, final @Nullable String guid, final CancellableHandler handler) {
-
+ if (geocode == null) {
+ return null;
+ }
CancellableHandler.sendLoadProgressDetail(handler, R.string.cache_dialog_loading_details_status_loadpage);
final Geocache cache = ECApi.searchByGeoCode(geocode);