pictureviewer: fix segfault if no channelid is present

Origin commit data
------------------
Commit: 3a49fa37b9
Author: TangoCash <eric@loxat.de>
Date: 2018-09-20 (Thu, 20 Sep 2018)
This commit is contained in:
TangoCash
2018-09-20 14:18:07 +02:00
committed by vanhofen
parent 2db251a102
commit 537154e3c7

View File

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