fix route output with nil payload

This commit is contained in:
Joel Wetzell
2025-12-28 12:42:20 -06:00
parent a263b10690
commit 6d3cf6692f

View File

@@ -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 {