@capacitor/ios 2.4.1 → 2.4.2

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.
@@ -99,10 +99,13 @@
99
99
  }
100
100
  return;
101
101
  }
102
-
103
- for(CAPPluginCall *call in listenersForEvent) {
104
- CAPPluginCallResult *result = [[CAPPluginCallResult alloc] init:data];
105
- call.successHandler(result, call);
102
+
103
+ for (int i=0; i < listenersForEvent.count; i++) {
104
+ CAPPluginCall *call = listenersForEvent[i];
105
+ if (call != nil) {
106
+ CAPPluginCallResult *result = [[CAPPluginCallResult alloc] init:data];
107
+ call.successHandler(result, call);
108
+ }
106
109
  }
107
110
  }
108
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/ios",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Capacitor: cross-platform mobile apps with the web",
5
5
  "homepage": "https://capacitor.ionicframework.com/",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionicframework.com) ",