Check nil before checking connection
When the field is a connection using a resolver but the resolved type is nil, the connection field logic tries to call `object` on `nil` and throws a NoMethodError. By checking if the resolved type is nil first, we avoid this issue. https://gitlab.com/gitlab-org/gitlab/-/issues/214047
Showing
Please register or sign in to comment