Fix possible null-pointer dereference.

This commit is contained in:
Nick Tiskov 2013-10-20 01:33:22 +04:00
parent ac622077db
commit abde611391

View file

@ -380,6 +380,10 @@ void RssFeed::handleNewArticle(const QString& feedUrl, const QVariantHash& artic
return;
RssArticlePtr article = hashToRssArticle(this, articleData);
if (article.isNull()) {
qDebug() << "Article hash corrupted or guid is uncomputable; feed url: " << feedUrl;
return;
}
Q_ASSERT(article);
addArticle(article);