Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MythNews: Fix coverity ID 1026720 Explicit null dereferenced
In MythNews::updateInfoView(): site may be NULL so check before dereferencing
it.
  • Loading branch information
Paul Harrison committed Jun 9, 2013
1 parent 6ba3f89 commit fa4b12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythplugins/mythnews/mythnews/mythnews.cpp
Expand Up @@ -336,7 +336,7 @@ void MythNews::updateInfoView(MythUIButtonListItem *selected)
if (m_thumbnailImage)
m_thumbnailImage->Hide();

if (!site->imageURL().isEmpty())
if (site && !site->imageURL().isEmpty())
{
QString fileprefix = GetConfDir();

Expand Down

0 comments on commit fa4b12d

Please sign in to comment.