mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Fix possible null-pointer dereference.
This commit is contained in:
parent
ac622077db
commit
abde611391
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue