@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 +6 -0
- package/android/src/main/java/com/cxsdk/CxSdkModule.kt +6 -1
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
package/index.esm.js
CHANGED