Skip to content

Commit

Permalink
Fixed potential nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
noctarius committed Jul 11, 2023
1 parent d6c75d4 commit 73e5462
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/replication/context/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ func (d *dispatcher) StartDispatcher() {
case <-d.shutdownAwaiter.AwaitShutdownChan():
goto finish
case task := <-d.taskQueue.ReadChannel():
task(notificator)
if task != nil {
task(notificator)
}
}
}

Expand Down

0 comments on commit 73e5462

Please sign in to comment.