Fix crash in ClusterComponent::CheckAuthorityHandler.

This commit is contained in:
Gunnar Beutner 2013-09-12 15:22:21 +02:00
parent 91aad7c997
commit 5cdf08c371
1 changed files with 3 additions and 0 deletions

View File

@ -1153,6 +1153,9 @@ void ClusterComponent::CheckAuthorityHandler(const DynamicObject::Ptr& object, c
endpoints.push_back(endpoint->GetName());
}
if (endpoints.empty())
return;
std::sort(endpoints.begin(), endpoints.end());
String key = object->GetType()->GetName() + "\t" + object->GetName();