fixed crash for timers without channel

This commit is contained in:
louis 2016-09-24 14:29:56 +02:00
parent cc1efd1d2e
commit d9ab1eb1ca
1 changed files with 1 additions and 1 deletions

View File

@ -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;