diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelArticle.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelArticle.java index 3cdc56b73a..413c7fdc14 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelArticle.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelArticle.java @@ -96,7 +96,8 @@ public class TravelArticle { int firstParagraphStart = content.indexOf(pOpened); int firstParagraphEnd = content.indexOf(pClosed); - if (firstParagraphStart == -1 || firstParagraphEnd == -1) { + if (firstParagraphStart == -1 || firstParagraphEnd == -1 + || firstParagraphEnd < firstParagraphStart) { return null; } int pClosedLength = pClosed.length();