We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb9d35 commit 781b137Copy full SHA for 781b137
packages/core/android/src/main/kotlin/com/datadog/reactnative/DdSdkImplementation.kt
@@ -115,8 +115,7 @@ class DdSdkImplementation(
115
fun removeAttributes(keys: ReadableArray, promise: Promise) {
116
val keysArray = mutableListOf<String>()
117
for (i in 0 until keys.size()) {
118
- val key: String = keys.getString(i)
119
- keysArray.add(key)
+ keys.getString(i)?.let { if (it.isNotBlank()) keysArray.add(it) }
120
}
121
val keysStringArray = keysArray.toTypedArray()
122
0 commit comments