Skip to content

Check nil before checking connection

Avielle Wolfe requested to merge 29623-fix-nil-resolver-crash into master

What does this MR do?

  • Updates AuthorizeFieldService to check if the resolved type is nil before attempting to authorize a connection field

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.

Issue #214047 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Avielle Wolfe

Merge request reports