mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Merge pull request #1008 from Gelmir/null-ref
Fix possible null-pointer dereference.
This commit is contained in:
commit
82cd484fad
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue