Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions android/src/main/java/com/cblreactnative/DataAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,19 @@ object DataAdapter {
indexProperties?.let { ip ->
if (indexType == "value") {
for (countValue in 0 until ip.size()) {
val arItems = ip.getArray(countValue)
arItems?.let { items ->
ip.getArray(countValue)?.let { items ->
for (countArray in 0 until items.size()) {
val item = items.getString(countArray)
item?.let { itemValue ->
items.getString(countArray)?.let { itemValue ->
valueIndexProperties.add(ValueIndexItem.property(itemValue))
}
}
}
}
} else {
for (countValue in 0 until ip.size()) {
val arItems = ip.getArray(countValue)
arItems?.let { items ->
ip.getArray(countValue)?.let { items ->
for (countArray in 0 until items.size()) {
val item = items.getString(countArray)
item?.let { itemValue ->
items.getString(countArray)?.let { itemValue ->
fullTextIndexProperties.add(FullTextIndexItem.property(itemValue))
}
}
Expand Down