From f62cf097a0e7abe35f350ef1e7838a0fbee98439 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Fri, 8 Jan 2021 19:04:48 +0200 Subject: [PATCH] Refactoring obf gpx --- OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java index a28e138ee7..1f7a2af18f 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelObfHelper.java @@ -601,7 +601,7 @@ public class TravelObfHelper implements TravelHelper { } catch (IOException e) { LOG.error(e.getMessage()); } - if (!amenities.isEmpty()) { + if (!Algorithms.isEmpty(amenities)) { article = cacheTravelArticles(reader.getFile(), amenities.get(0), lang); } }