From fa4a4a0ea80aa4844077dfcdc93d795e7e7b53bd Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 12 Jun 2019 06:59:37 +0000 Subject: [PATCH] Timeout request is null --- lib/src/Connection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Connection.dart b/lib/src/Connection.dart index ea82fcd..6cf57c5 100644 --- a/lib/src/Connection.dart +++ b/lib/src/Connection.dart @@ -214,7 +214,7 @@ class Connection { } on TimeoutException catch (_) { return ErrorResponse( - error: "No connection possible...", errcode: "TIMEOUT", request: resp.request); + error: "No connection possible...", errcode: "TIMEOUT", request: resp?.request); } catch (e) { return ErrorResponse( error: "No connection possible...", errcode: "NO_CONNECTION", request: resp.request);