diff --git a/links/gql_link/lib/src/response_parser.dart b/links/gql_link/lib/src/response_parser.dart index e8e830856..159addd6f 100644 --- a/links/gql_link/lib/src/response_parser.dart +++ b/links/gql_link/lib/src/response_parser.dart @@ -26,7 +26,7 @@ class ResponseParser { /// /// Extend this to add non-standard behavior GraphQLError parseError(Map error) => GraphQLError( - message: error["message"] as String, + message: (error["message"] ?? "") as String, path: error["path"] as List?, locations: (error["locations"] as List?) ?.map(