Skip to content

Commit

Permalink
Fix null pointer dereference in MythNetVision's NetSearch. Coverity 1…
Browse files Browse the repository at this point in the history
…026719, 703773
  • Loading branch information
stuartm committed Jun 3, 2013
1 parent 96c93d4 commit e2d1a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythplugins/mythnetvision/mythnetvision/netsearch.cpp
Expand Up @@ -87,14 +87,15 @@ bool NetSearch::Create()
m_noSites->SetVisible(false);

m_search = dynamic_cast<MythUITextEdit *> (GetChild("search"));
m_search->SetMaxLength(255);

if (!m_siteList || !m_searchResultList || !m_search)
{
LOG(VB_GENERAL, LOG_ERR, "Theme is missing critical theme elements.");
return false;
}

m_search->SetMaxLength(255);

// UI Hookups
connect(m_siteList, SIGNAL(itemSelected(MythUIButtonListItem *)),
SLOT(slotItemChanged()));
Expand Down

0 comments on commit e2d1a6d

Please sign in to comment.