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);