From 506190a64b128f636a2a29c8baec5dffdc96e7e5 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 9 Jan 2018 22:11:11 +0100 Subject: [PATCH] fixed bug causing failure of flag actions on groups --- libretroshare/src/gxs/rsgenexchange.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index 97fa36f5b..f644c5a0c 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -2076,7 +2076,7 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC // first find out which mask is involved int32_t value, mask, currValue; std::string key; - RsGxsGrpMetaData* grpMeta = NULL; + const RsGxsGrpMetaData* grpMeta = NULL; bool ok = false; RsGxsGrpMetaTemporaryMap grpMetaMap; @@ -2087,7 +2087,8 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC if((mit = grpMetaMap.find(grpId)) != grpMetaMap.end()) { - const RsGxsGrpMetaData *grpMeta = mit->second; + grpMeta = mit->second; + if (!grpMeta) { #ifdef GEN_EXCH_DEBUG