Fixed empty short description for some items

This commit is contained in:
PaulStets 2018-05-12 08:32:50 +03:00
parent d22f11f8bd
commit 1e3b93033a

View file

@ -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;