diff --git a/pkg/spaces/service.go b/pkg/spaces/service.go index 614ace0c3e4585b9cefe8349fe0fcc34f778b4b0..c75dab18e60f2e37d6dae9007de7563d7ca8b751 100644 --- a/pkg/spaces/service.go +++ b/pkg/spaces/service.go @@ -57,7 +57,7 @@ func IsSpaceAvailable(ctx context.Context, spcs Spaces, spaceId string) error { return errors.Wrap(err, "space not available") } - if spc.StateInfo.State != StateReady { + if spc.StateInfo != nil && spc.StateInfo.State != StateReady { return errors.New("space not available") }