diff options
Diffstat (limited to 'cpp/src/IceGrid/QueryI.cpp')
-rw-r--r-- | cpp/src/IceGrid/QueryI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/QueryI.cpp b/cpp/src/IceGrid/QueryI.cpp index f2a7474c046..567857f2b4a 100644 --- a/cpp/src/IceGrid/QueryI.cpp +++ b/cpp/src/IceGrid/QueryI.cpp @@ -87,9 +87,9 @@ QueryI::findAllReplicas(const Ice::ObjectPrx& proxy, const Ice::Current&) const try { AdapterInfoSeq infos = _database->getAdapterInfo(prx->ice_getAdapterId()); - assert(!infos.empty()); - if(infos[0].replicaGroupId != prx->ice_getAdapterId()) // The adapter id doesn't refer to a replica group. + if(infos.empty() || infos[0].replicaGroupId != prx->ice_getAdapterId()) { + // The adapter id doesn't refer to a replica group or the replica group is empty. return Ice::ObjectProxySeq(); } |