aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCBase.java b/main/src/cgeo/geocaching/connector/gc/GCBase.java
index 0473acb..53b5640 100644
--- a/main/src/cgeo/geocaching/connector/gc/GCBase.java
+++ b/main/src/cgeo/geocaching/connector/gc/GCBase.java
@@ -154,8 +154,8 @@ public class GCBase {
Bitmap bitmap = Tile.requestMapTile(GCConstants.URL_MAP_TILE, params, referer);
// Check bitmap size
- if (bitmap.getWidth() != Tile.TILE_SIZE ||
- bitmap.getHeight() != Tile.TILE_SIZE) {
+ if (bitmap != null && (bitmap.getWidth() != Tile.TILE_SIZE ||
+ bitmap.getHeight() != Tile.TILE_SIZE)) {
bitmap.recycle();
bitmap = null;
}