Committed by
GitHub
Merge pull request #2832 from DaZealous/patch-1
Update connect.dart with null checker exception
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -316,8 +316,8 @@ class GetConnect extends GetConnectInterface { | @@ -316,8 +316,8 @@ class GetConnect extends GetConnectInterface { | ||
316 | return GraphQLResponse<T>( | 316 | return GraphQLResponse<T>( |
317 | graphQLErrors: listError | 317 | graphQLErrors: listError |
318 | .map((e) => GraphQLError( | 318 | .map((e) => GraphQLError( |
319 | - code: e['extensions']['code']?.toString(), | ||
320 | - message: e['message']?.toString(), | 319 | + code: (e['extensions'] != null ? e['extensions']['code'] ?? '' : '').toString(), |
320 | + message: (e['message'] ?? '').toString(), | ||
321 | )) | 321 | )) |
322 | .toList()); | 322 | .toList()); |
323 | } | 323 | } |
-
Please register or login to post a comment