Browse Source

Merge pull request #1008 from Gelmir/null-ref

Fix possible null-pointer dereference.
adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
82cd484fad
  1. 4
      src/rss/rssfeed.cpp

4
src/rss/rssfeed.cpp

@ -380,6 +380,10 @@ void RssFeed::handleNewArticle(const QString& feedUrl, const QVariantHash& artic @@ -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);

Loading…
Cancel
Save