From 28bf299e5b5d7601513bb2fd4e15dd64a9588dbf Mon Sep 17 00:00:00 2001 From: bacnd Date: Tue, 25 Oct 2022 23:48:51 +0700 Subject: [PATCH] fix option is null --- core/management.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/management.go b/core/management.go index 968b237..e6dda90 100644 --- a/core/management.go +++ b/core/management.go @@ -99,6 +99,9 @@ func (d *DipperEngine) handlerOutput(ctx context.Context, dataOutput *data.Outpu for _, nextId := range dataOutput.Next { node, ok := sessionInfo.MapNode[nextId] if ok { + if node.Option == nil { + node.Option = map[string]interface{}{} + } node.Option["debug"] = node.Debug ruleQueue, ok := d.mapQueueInputRule[node.RuleId] if ok {