1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-04 10:54:35 +00:00

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