From e8b6322cc537df8cbc829be0f6182bdfdf6d0779 Mon Sep 17 00:00:00 2001 From: Lauri Svan Date: Tue, 7 Jan 2020 21:57:50 +0200 Subject: [PATCH] fix(client): translateNetworkFailure when no route to host --- packages/graphql/lib/src/exceptions/io_network_exception.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/graphql/lib/src/exceptions/io_network_exception.dart b/packages/graphql/lib/src/exceptions/io_network_exception.dart index 0041e3dca..2ac59fb83 100644 --- a/packages/graphql/lib/src/exceptions/io_network_exception.dart +++ b/packages/graphql/lib/src/exceptions/io_network_exception.dart @@ -11,7 +11,7 @@ stub.NetworkException translateNetworkFailure(dynamic failure) { message: failure.message, uri: Uri( scheme: 'http', - host: failure.address.host, + host: failure.address?.host, port: failure.port, ), );