Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 30d3a4d

Browse files
committed
Fix crash when error.userInfo[FIRFunctionsErrorDetailsKey] is nil
* crash when not specified `details` parameter at server's `functions.https.HttpsError`
1 parent eff94c1 commit 30d3a4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cloud_functions/ios/Classes/CloudFunctionsPlugin.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
4949
@"code" : [self mapFunctionsErrorCodes:error.code],
5050
@"message" : error.localizedDescription,
5151
@"details" : error.userInfo[FIRFunctionsErrorDetailsKey]
52+
?: [NSNull null]
5253
}];
5354
} else {
5455
flutterError =

0 commit comments

Comments
 (0)