From 260e1eaa09a4d64b073e49ec914272d1190b88ce Mon Sep 17 00:00:00 2001 From: wangchao Date: Wed, 30 Aug 2023 22:59:53 +0800 Subject: [PATCH] issue415 when the error message is null. --- links/gql_link/lib/src/response_parser.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(