diff --git a/libretroshare/src/services/p3gxsreputation.cc b/libretroshare/src/services/p3gxsreputation.cc index f4c334a02..5fd539a01 100644 --- a/libretroshare/src/services/p3gxsreputation.cc +++ b/libretroshare/src/services/p3gxsreputation.cc @@ -258,7 +258,7 @@ void p3GxsReputation::updateBannedNodesList() std::map pgp_ids_to_ban ; for( std::map::iterator rit = tmpreps.begin();rit!=tmpreps.end();++rit) - if((rit->second.mIdentityFlags & REPUTATION_IDENTITY_FLAG_PGP_LINKED) && rit->second.mOwnOpinion == p3GxsReputation::OPINION_NEGATIVE) + if((rit->second.mIdentityFlags & REPUTATION_IDENTITY_FLAG_PGP_LINKED) && !rit->second.mOwnerNode.isNull() && rit->second.mOwnOpinion == p3GxsReputation::OPINION_NEGATIVE) ++pgp_ids_to_ban[rit->second.mOwnerNode] ; mBannedPgpIds.clear() ;