CC-5693: API call to notify-item-start-playing fails because an invalid schedule id is sent

Temporary fix for this bug. Throw an exception if no schedule item is found.
This commit is contained in:
drigato 2014-02-10 16:19:26 -05:00
parent 873a62b8d7
commit 3b9608a8df
2 changed files with 8 additions and 5 deletions

View file

@ -560,6 +560,9 @@ class Application_Service_HistoryService
try {
$item = CcScheduleQuery::create()->findPK($schedId, $this->con);
if (is_null($item)) {
throw new Exception("Invalid schedule id: ".$schedId);
}
//TODO figure out how to combine these all into 1 query.
$showInstance = $item->getCcShowInstances($this->con);