fix nil pointer if group not exists (#1773)

Co-authored-by: anqiansong <anqiansong@bytedance.com>
master
anqiansong 3 years ago committed by GitHub
parent 415c4c91fc
commit 252fabcc4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -253,7 +253,7 @@ func (p *Parser) duplicateRouteCheck(nestedApi *Api, mainHandlerMap, mainRouteMa
prefix = p.Text()
}
g := each.AtServer.Kv.Get(groupKey)
if p != nil {
if g != nil {
group = g.Text()
}
}

Loading…
Cancel
Save