livestatus: hosttable: fix checkperiod null ptr

refs #4372
This commit is contained in:
Michael Friedrich 2013-07-05 11:46:20 +02:00
parent 7b0c27acc5
commit 03c18367ff
1 changed files with 2 additions and 4 deletions

View File

@ -250,14 +250,12 @@ Value HostsTable::CheckPeriodAccessor(const Object::Ptr& object)
if (!hc)
return Value();
return hc->GetCheckPeriod()->GetName();
/*
TimePeriod::Ptr timeperiod = hc->GetCheckPeriod;
TimePeriod::Ptr timeperiod = hc->GetCheckPeriod();
if (!timeperiod)
return Value();
return timeperiod->GetName();
*/
}
Value HostsTable::NotesAccessor(const Object::Ptr& object)