diff --git a/airtime_mvc/application/services/SchedulerService.php b/airtime_mvc/application/services/SchedulerService.php index a31bd380a..f3b3a009c 100644 --- a/airtime_mvc/application/services/SchedulerService.php +++ b/airtime_mvc/application/services/SchedulerService.php @@ -183,6 +183,9 @@ class Application_Service_SchedulerService ->limit(1) ->findOne(); + if (is_null($showInstanceWithMostRecentSchedule)) { + return null; + } $instanceId = $showInstanceWithMostRecentSchedule->getDbId(); }