Skip to content

Commit

Permalink
check nil
Browse files Browse the repository at this point in the history
  • Loading branch information
acud committed Nov 15, 2024
1 parent a5e1983 commit 3b71d57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,10 @@ func (app *App) listenToUpdates(ctx context.Context) {
}

app.hOracle.UpdateActiveSet(epoch, set)
app.proposalBuilder.UpdateActiveSet(epoch, set)

if app.proposalBuilder != nil {
app.proposalBuilder.UpdateActiveSet(epoch, set)
}

Check warning on line 1489 in node/node.go

View check run for this annotation

Codecov / codecov/patch

node/node.go#L1486-L1489

Added lines #L1486 - L1489 were not covered by tests

app.eg.Go(func() error {
select {
Expand Down

0 comments on commit 3b71d57

Please sign in to comment.