Skip to content

Commit

Permalink
https://github.com/Telerik-Verified-Plugins/WKWebView/issues/77
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Feb 21, 2015
1 parent 2772fa3 commit 9816836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/SocialSharing.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ - (void)share:(CDVInvokedUrlCommand*)command {
// iPad on iOS >= 8 needs a different approach
if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
NSString* iPadCoords = [self getIPadPopupCoordinates];
if (![iPadCoords isEqual:@"-1,-1,-1,-1"]) {
if (iPadCoords != nil && ![iPadCoords isEqual:@"-1,-1,-1,-1"]) {
NSArray *comps = [iPadCoords componentsSeparatedByString:@","];
CGRect rect = [self getPopupRectFromIPadPopupCoordinates:comps];
if ([activityVC respondsToSelector:@selector(popoverPresentationController)]) {
Expand Down

0 comments on commit 9816836

Please # to comment.