added a check to prevent SEGV when sending a notification about a group we updated

This commit is contained in:
csoler 2020-05-09 21:30:51 +02:00
parent df2899bae9
commit e09bf7c261
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C

View file

@ -656,6 +656,7 @@ void p3GxsCircles::notifyChanges(std::vector<RsGxsNotify *> &changes)
RsGxsCircleGroupItem *new_circle_grp_item = dynamic_cast<RsGxsCircleGroupItem*>(groupChange->mNewGroupItem);
if(new_circle_grp_item) // groups published by us do not come in the mNewGroupItem field. It's possible to add them, in rsgenexchange.cc:2806
for(auto& gxs_id: new_circle_grp_item->gxsIdSet.ids)
{
auto ev = std::make_shared<RsGxsCircleEvent>();