fix: crash in dbRecordBundleToCommunity if event was signed not by a control node (#5009)
This commit is contained in:
parent
8292980f90
commit
3c76fdc626
|
@ -3330,7 +3330,7 @@ func (m *Manager) dbRecordBundleToCommunity(r *CommunityRecordBundle) (*Communit
|
||||||
if err != nil {
|
if err != nil {
|
||||||
m.logger.Error("invalid EventsBaseCommunityDescription", zap.Error(err))
|
m.logger.Error("invalid EventsBaseCommunityDescription", zap.Error(err))
|
||||||
}
|
}
|
||||||
if eventsDescription.Clock == community.Clock() {
|
if eventsDescription != nil && eventsDescription.Clock == community.Clock() {
|
||||||
community.applyEvents()
|
community.applyEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue