diff --git a/sdk/src/main/java/com/amplitude/experiment/FlagApi.kt b/sdk/src/main/java/com/amplitude/experiment/FlagApi.kt index 64e2552..46c7a9f 100644 --- a/sdk/src/main/java/com/amplitude/experiment/FlagApi.kt +++ b/sdk/src/main/java/com/amplitude/experiment/FlagApi.kt @@ -59,9 +59,7 @@ internal class SdkFlagApi( (0 until jsonArray.length()).forEach { val jsonString = jsonArray.getJSONObject(it).toString() val flag = json.decodeFromString(jsonString) - if (flag != null) { - flags[flag.key] = flag - } + flags[flag.key] = flag } future.complete(flags)