@coralogix/react-native-plugin 0.2.9 → 0.2.10

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.2.10 (2026-02-22)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - Android: skip null values returned by `getString(i)` when iterating over a `ReadableArray`, preventing potential `NullPointerException` downstream ([CX-32237](https://coralogix.atlassian.net/browse/CX-32237))
6
+
1
7
  ## 0.2.9 (2026-02-11)
2
8
 
3
9
  ### 🚀 Features
@@ -595,7 +595,12 @@ class CxSdkModule(reactContext: ReactApplicationContext) :
595
595
 
596
596
  for (i in 0 until size()) {
597
597
  if (getType(i) == ReadableType.String) {
598
- result.add(getString(i))
598
+ val value = getString(i)
599
+ if (value != null) {
600
+ result.add(value)
601
+ } else {
602
+ Log.w("CxSdkModule", "getString($i) returned null despite ReadableType.String, skipping value")
603
+ }
599
604
  } else {
600
605
  Log.w("CxSdkModule", "Value at $i in ReadableArray is of type ${getType(i)}, expecting String, skipping value")
601
606
  }
package/index.cjs.js CHANGED
@@ -220,7 +220,7 @@ function stopJsRefreshRateSampler() {
220
220
  appStateSub = null;
221
221
  }
222
222
 
223
- var version = "0.2.9";
223
+ var version = "0.2.10";
224
224
  var pkg = {
225
225
  version: version};
226
226
 
package/index.esm.js CHANGED
@@ -218,7 +218,7 @@ function stopJsRefreshRateSampler() {
218
218
  appStateSub = null;
219
219
  }
220
220
 
221
- var version = "0.2.9";
221
+ var version = "0.2.10";
222
222
  var pkg = {
223
223
  version: version};
224
224
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/react-native-plugin",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Official Coralogix React Native plugin",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",