diff --git a/examples/remote/ucs.go b/examples/remote/ucs.go index d1eead23..457963a2 100644 --- a/examples/remote/ucs.go +++ b/examples/remote/ucs.go @@ -45,8 +45,12 @@ func (r *Remote) PropagateEvent( ) { params := make(map[string]interface{}, 2) params["ski"] = ski - params["device"] = device.Address() - params["entity"] = entity.Address() + if device != nil { + params["device"] = device.Address() + } + if entity != nil { + params["entity"] = entity.Address() + } for _, conn := range r.connections { _ = conn.Notify(context.Background(), string(event), params) }