diff options
Diffstat (limited to 'main/src/cgeo/geocaching/cgCache.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgCache.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java index 432bd93..9fdaaaf 100644 --- a/main/src/cgeo/geocaching/cgCache.java +++ b/main/src/cgeo/geocaching/cgCache.java @@ -507,6 +507,9 @@ public class cgCache implements ICache { @Override public CacheSize getSize() { + if (size == null) { + return CacheSize.UNKNOWN; + } return size; } @@ -986,7 +989,12 @@ public class cgCache implements ICache { } public void setSize(CacheSize size) { - this.size = size; + if (size == null) { + this.size = CacheSize.UNKNOWN; + } + else { + this.size = size; + } } public void setDifficulty(float difficulty) { |