From f2c92aa9bbb0689e2e8e9a7ab6a3066bfb154f77 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 29 Jan 2020 09:21:23 +0000 Subject: [PATCH] [MatrixException] Add nullchecker --- lib/src/utils/matrix_exception.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/utils/matrix_exception.dart b/lib/src/utils/matrix_exception.dart index 056585c1..e2b51409 100644 --- a/lib/src/utils/matrix_exception.dart +++ b/lib/src/utils/matrix_exception.dart @@ -100,7 +100,7 @@ class MatrixException implements Exception { Map get authenticationParams => raw["params"]; /// Returns the list of already completed authentication flows from previous requests. - List get completedAuthenticationFlows => List.from(raw["completed"]); + List get completedAuthenticationFlows => List.from(raw["completed"] ?? []); } /// For each endpoint, a server offers one or more 'flows' that the client can use