Merge pull request #1008 from Gelmir/null-ref

Fix possible null-pointer dereference.
This commit is contained in:
sledgehammer999 2013-10-20 08:21:14 -07:00
commit 82cd484fad

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