community-cordova-plugin-social-sharing 6.2.2 → 6.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "community-cordova-plugin-social-sharing",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "Share text, images (and other files), or a link via the native sharing widget of your device. Android is fully supported, as well as iOS 6 and up. WP8 has somewhat limited support.",
5
5
  "cordova": {
6
6
  "id": "community-cordova-plugin-social-sharing",
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
3
3
  xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  id="community-cordova-plugin-social-sharing"
5
- version="6.2.2">
5
+ version="6.2.3">
6
6
 
7
7
  <name>SocialSharing</name>
8
8
 
@@ -10,7 +10,10 @@ public class ShareChooserPendingIntent extends BroadcastReceiver {
10
10
  @Override
11
11
  public void onReceive(Context context, Intent intent) {
12
12
  if (intent.getExtras() != null) {
13
- ShareChooserPendingIntent.chosenComponent = intent.getExtras().get(Intent.EXTRA_CHOSEN_COMPONENT).toString();
13
+ Object chosenComponent = intent.getExtras().get(Intent.EXTRA_CHOSEN_COMPONENT);
14
+ if (chosenComponent != null) {
15
+ ShareChooserPendingIntent.chosenComponent = chosenComponent.toString();
16
+ }
14
17
  }
15
18
  }
16
19
  }