fixes and updated cache stats API

This commit is contained in:
Radu Ioan Fericean
2016-08-12 17:53:55 +03:00
parent 802e5ae4c7
commit b5506f3361
5 changed files with 12 additions and 2 deletions

View File

@@ -119,6 +119,9 @@ func (s *Scheduler) loadActionPlans() {
// recreate the queue
s.queue = engine.ActionTimingPriorityList{}
for _, actionPlan := range actionPlans {
if actionPlan == nil {
continue
}
for _, at := range actionPlan.ActionTimings {
if at.Timing == nil {
utils.Logger.Warning(fmt.Sprintf("<Scheduler> Nil timing on action plan: %+v, discarding!", at))