mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed possible crash when switching channel
This commit is contained in:
parent
a7b3b7333f
commit
a9e7a34c11
@ -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 ? "-" : "");
|
||||
|
Loading…
Reference in New Issue
Block a user