From d9ab1eb1ca65972672abfea2dd372eb4de7cf3de Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 24 Sep 2016 14:29:56 +0200 Subject: [PATCH] fixed crash for timers without channel --- coreengine/viewelementsdisplaychannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreengine/viewelementsdisplaychannel.c b/coreengine/viewelementsdisplaychannel.c index c73807e..7f2d4fa 100644 --- a/coreengine/viewelementsdisplaychannel.c +++ b/coreengine/viewelementsdisplaychannel.c @@ -180,7 +180,7 @@ bool cVeDcEpgInfo::EventHasTimer(const cEvent *e) { bool hasTimer = e->HasTimer(); for (int i = 0; i < globalTimers->Size() && !hasTimer; i++) if (const cTimer *Timer = globalTimers->At(i)) - if (Timer->Channel()->GetChannelID() == e->ChannelID()) + if (Timer->Channel() && (Timer->Channel()->GetChannelID() == e->ChannelID())) if (const cEvent *timerEvent = Timer->Event()) if (e->EventID() == timerEvent->EventID()) hasTimer = true;