aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/gc/GCParser.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/connector/gc/GCParser.java')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCParser.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java
index bce3f7d..218d4fc 100644
--- a/main/src/cgeo/geocaching/connector/gc/GCParser.java
+++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java
@@ -543,12 +543,7 @@ public abstract class GCParser {
if (matcherSpoilersInside.group(3) != null) {
description = matcherSpoilersInside.group(3);
}
- final cgImage spoiler = new cgImage(url, title, description);
-
- if (cache.getSpoilers() == null) {
- cache.setSpoilers(new ArrayList<cgImage>());
- }
- cache.getSpoilers().add(spoiler);
+ cache.addSpoiler(new cgImage(url, title, description));
}
} catch (Exception e) {
// failed to parse cache spoilers