Merge pull request #5338 from osmandapp/PaulsBranch
Fixed indexOutOfBounds for short description
This commit is contained in:
commit
d435609a0a
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ public class TravelArticle {
|
||||||
|
|
||||||
int firstParagraphStart = content.indexOf(pOpened);
|
int firstParagraphStart = content.indexOf(pOpened);
|
||||||
int firstParagraphEnd = content.indexOf(pClosed);
|
int firstParagraphEnd = content.indexOf(pClosed);
|
||||||
if (firstParagraphStart == -1 || firstParagraphEnd == -1) {
|
if (firstParagraphStart == -1 || firstParagraphEnd == -1
|
||||||
|
|| firstParagraphEnd < firstParagraphStart) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
int pClosedLength = pClosed.length();
|
int pClosedLength = pClosed.length();
|
||||||
|
|
Loading…
Reference in a new issue