diff --git a/app/v1/user.go b/app/v1/user.go index 806f3d7..7d2ba44 100644 --- a/app/v1/user.go +++ b/app/v1/user.go @@ -329,6 +329,9 @@ func UserUserpageGET(md common.MethodData) common.CodeMessager { md.Err(err) return Err500 } + if r.Userpage == nil { + r.Userpage = new(string) + } r.Code = 200 return r }