added test against empty circles

This commit is contained in:
csoler 2016-03-03 21:37:36 -05:00
parent 9ddef9e45b
commit 3c2c1df245

View File

@ -3569,6 +3569,12 @@ bool RsGxsNetService::encryptSingleNxsItem(RsNxsItem *item, const RsGxsCircleId&
return false ;
}
if(recipients.empty())
{
std::cerr << " (EE) No recipients found for circle " << destination_circle << ". Circle not in cache, or empty circle?" << std::endl;
return false ;
}
#ifdef NXS_NET_DEBUG_7
GXSNETDEBUG_P_ (item->PeerId()) << " Dest Ids: " << std::endl;
#endif