Merge branch 'matrixexception-fix-nullchecker' into 'master'

[MatrixException] Add nullchecker

See merge request famedly/famedlysdk!172
This commit is contained in:
Christian Pauly 2020-01-29 09:25:41 +00:00
commit 2e6a1ab4d4

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