diff --git a/src/wp8/SocialSharing.cs b/src/wp8/SocialSharing.cs index 1a165127..9d63b2f4 100644 --- a/src/wp8/SocialSharing.cs +++ b/src/wp8/SocialSharing.cs @@ -26,7 +26,7 @@ public void share(string jsonArgs) var files = JsonHelper.Deserialize(options[2]); var link = options[3]; - if (!"null".Equals(link)) + if (link != null && !"null".Equals(link)) { ShareLinkTask shareLinkTask = new ShareLinkTask(); shareLinkTask.Title = title; @@ -100,4 +100,4 @@ public class SMSMessageClass public string message { get; set; } } -} \ No newline at end of file +}