fixed possible crash when switching channel

This commit is contained in:
louis 2014-10-28 23:16:23 +01:00
parent a7b3b7333f
commit a9e7a34c11

View File

@ -46,7 +46,7 @@ void cSDDisplayChannel::SetChannel(const cChannel *Channel, int Number) {
cString ChannelID("");
if (Channel) {
ChannelName = Channel->Name();
ChannelName = Channel->Name() ? Channel->Name() : "";
ChannelID = Channel->GetChannelID().ToString();
if (!Channel->GroupSep()) {
ChannelNumber = cString::sprintf("%d%s", Channel->Number(), Number ? "-" : "");