Skip to content
Snippets Groups Projects
Commit 51ab39d4 authored by ko_oler's avatar ko_oler
Browse files

учтено что state может быть nil

parent e992dfe7
Branches
Tags
No related merge requests found
......@@ -58,6 +58,9 @@ func PtrSpaceToProto(space *service.Space) (*pb.Space, error) {
}
cfg, _ := PtrConfigToProto(space.Config)
state, _ := PtrStateInfoToProto(space.StateInfo)
if state == nil {
state = &pb.StateInfo{}
}
return &pb.Space{
Id: space.ID,
OrgId: space.OrgID,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment