Fix invalid function call.

This commit is contained in:
Gunnar Beutner 2013-07-11 08:40:02 +02:00
parent 2a097d0b04
commit 033389d243
1 changed files with 8 additions and 1 deletions

View File

@ -136,7 +136,14 @@ void ServicesTable::FetchRows(const AddRowFunction& addRowFn)
Object::Ptr ServicesTable::HostAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor)
{
return static_cast<Service::Ptr>(parentObjectAccessor(row))->GetHost();
Value service;
if (parentObjectAccessor)
service = parentObjectAccessor(row);
else
service = row;
return static_cast<Service::Ptr>(service)->GetHost();
}
Value ServicesTable::ShortNameAccessor(const Value& row)