From b254ae2c5dc2af8e4adcd156dd17865765df9650 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Wed, 19 Feb 2020 11:24:40 -0500 Subject: [PATCH] choice choice --- MVMCore/MVMCore/ActionHandling/MVMCoreActionHandler.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/ActionHandling/MVMCoreActionHandler.m b/MVMCore/MVMCore/ActionHandling/MVMCoreActionHandler.m index cb97e19..f230ba5 100644 --- a/MVMCore/MVMCore/ActionHandling/MVMCoreActionHandler.m +++ b/MVMCore/MVMCore/ActionHandling/MVMCoreActionHandler.m @@ -163,7 +163,12 @@ NSString * const KeyActionTypeOpen = @"openPage"; } else if ([shareType isEqualToString:@"url"]) { if (shareText.length > 0) { - shareData = @[shareText, [NSURL URLWithString:shareText]]; + NSURL *url = [NSURL URLWithString:shareText]; + if (url) { + shareData = @[shareText, url]; + } else { + shareData = @[shareText]; + } } } else if ([shareType isEqualToString:@"image"]) { // TODO: Implement image parsing. 🏂