diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/PopularArticles.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/PopularArticles.java index c1bcb1d2eb..e354825b17 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/PopularArticles.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/PopularArticles.java @@ -9,7 +9,7 @@ public class PopularArticles { public static final int ARTICLES_PER_PAGE = 30; - private final List articles; + private List articles; public PopularArticles() { this.articles = new ArrayList<>(); @@ -20,12 +20,12 @@ public class PopularArticles { } public void clear() { - articles.clear(); + articles = new ArrayList<>(); } @NonNull public List getArticles() { - return articles; + return new ArrayList<>(articles); } public boolean add(@NonNull TravelArticle article) {