We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aca0b6b + d0da1af commit 6f1712eCopy full SHA for 6f1712e
packages/ndk/lib/domain_layer/usecases/nwc/responses/nwc_response.dart
@@ -16,7 +16,7 @@ class NwcResponse {
16
});
17
18
void deserializeError(Map<String, dynamic> input) {
19
- if (input.containsKey('error')) {
+ if (input.containsKey('error') && input['error'] != null) {
20
Map<String, dynamic> error = input['error'] as Map<String, dynamic>;
21
errorCode = error["code"];
22
errorMessage = error["message"];
0 commit comments