fix nil pointer if group not exists (#1773)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user