diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java index 58bda6370b..58c1056c7b 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java @@ -147,8 +147,9 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen private String createHtmlContent(WikivoyageArticle article) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(HEADER_INNER); - if (!Algorithms.isEmpty(article.getImageTitle())) { - stringBuilder.append(""); + String articleTitle = article.getImageTitle(); + if (!Algorithms.isEmpty(articleTitle)) { + stringBuilder.append(""); } stringBuilder.append("
\n"); stringBuilder.append("

").append(article.getTitle()).append("

");