mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-04 19:04:30 +00:00
Fix possible null-pointer dereference.
This commit is contained in:
parent
ac622077db
commit
abde611391
@ -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…
x
Reference in New Issue
Block a user