Skip to content

Commit

Permalink
fix nil pointer (#12731)
Browse files Browse the repository at this point in the history
Co-authored-by: shota.silagadze <[email protected]>
  • Loading branch information
shotasilagadze and shotasilagadzetaal authored Nov 15, 2024
1 parent d72d59d commit 871a242
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cl/phase1/network/gossip_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ func (g *GossipManager) routeAndProcess(ctx context.Context, data *sentinel.Goss
// The background checks above are enough for now.
return g.blobService.ProcessMessage(ctx, data.SubnetId, blobSideCar)
case gossip.IsTopicSyncCommittee(data.Name):
msg := &cltypes.SyncCommitteeMessageWithGossipData{}
msg := &cltypes.SyncCommitteeMessageWithGossipData{
GossipData: copyOfSentinelData(data),
SyncCommitteeMessage: &cltypes.SyncCommitteeMessage{},
}
if err := msg.SyncCommitteeMessage.DecodeSSZ(common.CopyBytes(data.Data), int(version)); err != nil {
return err
}
Expand Down

0 comments on commit 871a242

Please sign in to comment.