react-native-geofence-manager 0.1.0-beta.13 → 0.1.0-beta.14
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.
|
@@ -132,11 +132,13 @@ class GeofenceManagerModule(reactContext: ReactApplicationContext) :
|
|
|
132
132
|
try {
|
|
133
133
|
val list = mutableListOf<Geofence>()
|
|
134
134
|
for (i in 0 until geofences.size()) {
|
|
135
|
-
val item
|
|
135
|
+
val item = geofences.getMap(i)
|
|
136
|
+
if (item == null) {
|
|
136
137
|
Log.w(TAG, "addGeofences: index $i skipped (null map)")
|
|
137
138
|
continue
|
|
138
139
|
}
|
|
139
|
-
val id = item.getString("id")
|
|
140
|
+
val id = item.getString("id")
|
|
141
|
+
if (id == null) {
|
|
140
142
|
Log.w(TAG, "addGeofences: index $i skipped (missing id)")
|
|
141
143
|
continue
|
|
142
144
|
}
|