Skip to content

Commit

Permalink
#172 null message crashed shareViaFacebook on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Sep 2, 2014
1 parent 23fb619 commit e4dda6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="nl.x-services.plugins.socialsharing"
version="4.3.2">
version="4.3.3">

<name>SocialSharing</name>

Expand Down
4 changes: 3 additions & 1 deletion src/ios/SocialSharing.m
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ - (void)shareViaInternal:(CDVInvokedUrlCommand*)command

// boldly invoke the target app, because the phone will display a nice message asking to configure the app
SLComposeViewController *composeViewController = [SLComposeViewController composeViewControllerForServiceType:type];
[composeViewController setInitialText:message];
if (message != (id)[NSNull null]) {
[composeViewController setInitialText:message];
}

for (NSString* filename in filenames) {
UIImage* image = [self getImage:filename];
Expand Down

0 comments on commit e4dda6c

Please sign in to comment.