Skip to content

Commit aab522a

Browse files
committedAug 15, 2024·
fix nil pointer dereference
1 parent b1086d2 commit aab522a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎consensus/reactor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ OUTER_LOOP:
701701

702702
// Send compact block
703703
if !prs.Block && rs.ProposalBlockParts.HasHeader(prs.ProposalBlockPartSetHeader) {
704-
if rs.ProposalCompactBlock != nil {
704+
if rs.ProposalCompactBlock != nil && rs.Proposal != nil {
705705
compactBlock, err := rs.ProposalCompactBlock.ToProto()
706706
if err != nil {
707707
panic(err)

0 commit comments

Comments
 (0)
Please sign in to comment.