Skip to content

Commit

Permalink
Fix NPE for task when global domain disabled (#3228)
Browse files Browse the repository at this point in the history
  • Loading branch information
vancexu authored May 1, 2020
1 parent f38cfde commit 2082e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/historyEngine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2695,7 +2695,7 @@ func (e *historyEngineImpl) NotifyNewReplicationTasks(
tasks []persistence.Task,
) {

if len(tasks) > 0 {
if len(tasks) > 0 && e.replicatorProcessor != nil {
e.replicatorProcessor.notifyNewTask()
}
}
Expand Down

0 comments on commit 2082e05

Please sign in to comment.