Fix null pointer dereference in ApiEvents::RepositoryTimerHandler

fixes #8535
This commit is contained in:
Gunnar Beutner 2015-02-25 13:59:18 +01:00
parent 19e160ce92
commit acd5d55f64
1 changed files with 3 additions and 0 deletions

View File

@ -1641,6 +1641,9 @@ void ApiEvents::RepositoryTimerHandler(void)
Zone::Ptr my_zone = my_endpoint->GetZone();
if (!my_zone)
return;
Dictionary::Ptr params = new Dictionary();
params->Set("seen", Utility::GetTime());
params->Set("endpoint", my_endpoint->GetName());