Skip to content

Commit 88863f0

Browse files
committed
[executor] Explicitly dismiss incoming NULL_DEVICE_EVENT
1 parent 3e369ae commit 88863f0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

executor/executor.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,10 @@ func launch(state *internalState, task mesos.TaskInfo) {
600600
ev := esr.GetEvent()
601601

602602
deviceEvent := event.NewDeviceEvent(deo, ev.GetType())
603+
if deviceEvent == nil {
604+
log.Debug("nil DeviceEvent received (NULL_DEVICE_EVENT)")
605+
continue
606+
}
603607

604608
jsonEvent, err := json.Marshal(deviceEvent)
605609
if err != nil {

0 commit comments

Comments
 (0)