[MatrixException] Add nullchecker

This commit is contained in:
Christian Pauly 2020-01-29 09:21:23 +00:00
parent 87f1a4ed99
commit f2c92aa9bb

View file

@ -100,7 +100,7 @@ class MatrixException implements Exception {
Map<String, dynamic> get authenticationParams => raw["params"];
/// Returns the list of already completed authentication flows from previous requests.
List<String> get completedAuthenticationFlows => List<String>.from(raw["completed"]);
List<String> get completedAuthenticationFlows => List<String>.from(raw["completed"] ?? []);
}
/// For each endpoint, a server offers one or more 'flows' that the client can use