From 5cdf08c37128ca40d63c95c1c4fda1ead23d2a34 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 12 Sep 2013 15:22:21 +0200 Subject: [PATCH] Fix crash in ClusterComponent::CheckAuthorityHandler. --- components/cluster/clustercomponent.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index 97f8aeeae..bed6ca409 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -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(); -- 2.40.0