mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
fix route output with nil payload
This commit is contained in:
@@ -149,6 +149,11 @@ func (r *Router) HandleInput(ctx context.Context, sourceId string, payload any)
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if payload == nil {
|
||||||
|
r.logger.Error("no input after processing", "route", routeIndex, "source", sourceId)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
outputErrors := r.HandleOutput(routeContext, routeInstance.Output(), payload)
|
outputErrors := r.HandleOutput(routeContext, routeInstance.Output(), payload)
|
||||||
if outputErrors != nil {
|
if outputErrors != nil {
|
||||||
if routeIOErrors == nil {
|
if routeIOErrors == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user