pictureviewer: fix segfault if no channelid is present

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
TangoCash
2018-09-20 14:18:07 +02:00
committed by Thilo Graf
parent b566869f93
commit 13c645ed61

View File

@@ -543,8 +543,9 @@ bool CPictureViewer::GetLogoName(const uint64_t& channel_id, const std::string&
e2filename2[0] = '\0';
CZapitChannel * cc = NULL;
if (CNeutrinoApp::getInstance()->channelList)
cc = CNeutrinoApp::getInstance()->channelList->getChannel(channel_id);
if (channel_id)
if (CNeutrinoApp::getInstance()->channelList)
cc = CNeutrinoApp::getInstance()->channelList->getChannel(channel_id);
if (cc)
{