Browse Source

Fix possible null-pointer dereference.

adaptive-webui-19844
Nick Tiskov 11 years ago
parent
commit
abde611391
  1. 4
      src/rss/rssfeed.cpp

4
src/rss/rssfeed.cpp

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

Loading…
Cancel
Save