summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--displaychannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/displaychannel.c b/displaychannel.c
index 1af5868..345e6d9 100644
--- a/displaychannel.c
+++ b/displaychannel.c
@@ -567,7 +567,7 @@ void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) {
cImageLoader imgLoader;
if (imgLoader.LoadLogo(*ChannelName)) {
pixmapLogo->DrawImage(cPoint(config.logoBorder, (height-config.logoHeight)/2), imgLoader.GetImage());
- } else if (imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()))) {
+ } else if (Channel && imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()))) {
pixmapLogo->DrawImage(cPoint(config.logoBorder, (height-config.logoHeight)/2), imgLoader.GetImage());
}
}