From 88315ed8cd10f384bf4f9a241624f7e8f059be0b Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 23 Aug 2023 16:58:04 -0700 Subject: [PATCH] Fix a clang-tidy error seen in the latest toolchain roll --- .../darwin/ios/framework/Source/FlutterPlatformPlugin.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm b/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm index 3ac744381db25..ef454d0d44012 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm @@ -133,7 +133,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { - (void)showShareViewController:(NSString*)content { UIViewController* engineViewController = [_engine.get() viewController]; - NSArray* itemsToShare = @[ content ]; + NSArray* itemsToShare = @[ content ?: [NSNull null] ]; UIActivityViewController* activityViewController = [[[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil] autorelease];