fix: crash in dbRecordBundleToCommunity if event was signed not by a control node (#5009)

This commit is contained in:
Mykhailo Prakhov 2024-04-03 14:51:28 +02:00 committed by GitHub
parent 8292980f90
commit 3c76fdc626
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}
}