avoid null pointer use

Origin commit data
------------------
Commit: 8fb4e1b78e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-04-21 (Thu, 21 Apr 2016)
This commit is contained in:
Jacek Jendrzej
2016-04-21 15:29:18 +02:00
parent a787c2990d
commit 419b55bb97
6 changed files with 16 additions and 12 deletions

View File

@@ -86,7 +86,8 @@ void CAdZapMenu::Init()
{
CChannelList *channelList = CNeutrinoApp::getInstance()->channelList;
channelId = channelList ? channelList->getActiveChannel_ChannelID() : -1;
channelName = channelList->getActiveChannelName();
if(channelList)
channelName = channelList->getActiveChannelName();
evtlist.clear();
CEitManager::getInstance()->getEventsServiceKey(channelId & 0xFFFFFFFFFFFFULL, evtlist);
monitorLifeTime.tv_sec = 0;