diff options
Diffstat (limited to 'main/src/cgeo/geocaching/export/GpxSerializer.java')
| -rw-r--r-- | main/src/cgeo/geocaching/export/GpxSerializer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/export/GpxSerializer.java b/main/src/cgeo/geocaching/export/GpxSerializer.java index fef91cf..2da1638 100644 --- a/main/src/cgeo/geocaching/export/GpxSerializer.java +++ b/main/src/cgeo/geocaching/export/GpxSerializer.java @@ -239,12 +239,13 @@ public final class GpxSerializer { } private void writeLogs(final Geocache cache) throws IOException { - if (cache.getLogs().isEmpty()) { + List<LogEntry> logs = cache.getLogs(); + if (logs.isEmpty()) { return; } gpx.startTag(PREFIX_GROUNDSPEAK, "logs"); - for (final LogEntry log : cache.getLogs()) { + for (final LogEntry log : logs) { gpx.startTag(PREFIX_GROUNDSPEAK, "log"); gpx.attribute("", "id", Integer.toString(log.id)); |
