From a12491ff265f0128939dbbbceae11461410c8a43 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 12 Sep 2013 20:41:23 +0200 Subject: Fixed a crash if a recording without EPG is running --- worker.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worker.c b/worker.c index 38f1ccd..2c852fb 100644 --- a/worker.c +++ b/worker.c @@ -185,7 +185,9 @@ void cTVScraperWorker::CheckRunningTimers(void) { for (cTimer *timer = Timers.First(); timer; timer = Timers.Next(timer)) { if (timer->Recording()) { const cEvent *event = timer->Event(); - scrapType type = GetScrapType(event); + if (!event) + continue; + scrapType type = GetScrapType(event); if (type == scrapSeries) { if (!db->SetRecordingSeries((int)event->EventID())) { if (ConnectScrapers()) { -- cgit v1.2.3