mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 12:55:29 +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
|
||||
}
|
||||
|
||||
if payload == nil {
|
||||
r.logger.Error("no input after processing", "route", routeIndex, "source", sourceId)
|
||||
continue
|
||||
}
|
||||
|
||||
outputErrors := r.HandleOutput(routeContext, routeInstance.Output(), payload)
|
||||
if outputErrors != nil {
|
||||
if routeIOErrors == nil {
|
||||
|
||||
Reference in New Issue
Block a user