From 3c76fdc6264526c743db24579fd628876926822a Mon Sep 17 00:00:00 2001 From: Mykhailo Prakhov Date: Wed, 3 Apr 2024 14:51:28 +0200 Subject: [PATCH] fix: crash in dbRecordBundleToCommunity if event was signed not by a control node (#5009) --- protocol/communities/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/communities/manager.go b/protocol/communities/manager.go index 68c965890..84648f21f 100644 --- a/protocol/communities/manager.go +++ b/protocol/communities/manager.go @@ -3330,7 +3330,7 @@ func (m *Manager) dbRecordBundleToCommunity(r *CommunityRecordBundle) (*Communit if err != nil { m.logger.Error("invalid EventsBaseCommunityDescription", zap.Error(err)) } - if eventsDescription.Clock == community.Clock() { + if eventsDescription != nil && eventsDescription.Clock == community.Clock() { community.applyEvents() } }