🐛 Fix npe

This commit is contained in:
Liang Ding 2022-06-07 18:18:03 +08:00
parent 3007364309
commit d3eb23c137
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D

View File

@ -200,6 +200,9 @@ func getFullHPathByID(c *gin.Context) {
if !ok { if !ok {
return return
} }
if nil == arg["id"] {
return
}
id := arg["id"].(string) id := arg["id"].(string)
hPath, err := model.GetFullHPathByID(id) hPath, err := model.GetFullHPathByID(id)