diff --git a/manager/dispatcher/dispatcher.go b/manager/dispatcher/dispatcher.go index 41b9ba73fe..5bc230fec3 100644 --- a/manager/dispatcher/dispatcher.go +++ b/manager/dispatcher/dispatcher.go @@ -1174,6 +1174,9 @@ func (d *Dispatcher) Assignments(r *api.AssignmentsRequest, stream api.Dispatche case api.EventUpdateVolume: d.store.View(func(readTx store.ReadTx) { vol := store.GetVolume(readTx, v.Volume.ID) + if vol == nil { + return + } // check through the PublishStatus to see if there is // one for this node. for _, status := range vol.PublishStatus {