diff --git a/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java b/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java index 64b16ca770..4b4907db86 100644 --- a/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java @@ -245,6 +245,7 @@ public class WikiArticleHelper { int firstParagraphStart = content.indexOf(P_OPENED); int firstParagraphEnd = content.indexOf(P_CLOSED); + firstParagraphEnd = firstParagraphEnd < firstParagraphStart ? content.indexOf(P_CLOSED, firstParagraphStart) : firstParagraphEnd; if (firstParagraphStart == -1 || firstParagraphEnd == -1 || firstParagraphEnd < firstParagraphStart) { return null;