From 50f97857f0be1aa8c6d4f58f3c9e27679d6d8b23 Mon Sep 17 00:00:00 2001 From: caselett <79475019+caselett@users.noreply.github.com> Date: Mon, 20 Jul 2026 21:25:22 +0300 Subject: [PATCH 1/2] Fixed bug when request returns empty list on network call error --- FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt b/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt index 2842383..a0167cb 100644 --- a/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt +++ b/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt @@ -38,7 +38,7 @@ class Flagsmith constructor( private val enableRealtimeUpdates: Boolean = false, private val analyticsFlushPeriod: Int = DEFAULT_ANALYTICS_FLUSH_PERIOD_SECONDS, private val cacheConfig: FlagsmithCacheConfig = FlagsmithCacheConfig(), - private val defaultFlags: List = emptyList(), + private val defaultFlags: List? = null, private val requestTimeoutSeconds: Long = 4L, private val readTimeoutSeconds: Long = 6L, private val writeTimeoutSeconds: Long = 6L, From 016e9ce80d05e3d37947f4f36053460b6fde4aff Mon Sep 17 00:00:00 2001 From: caselett <79475019+caselett@users.noreply.github.com> Date: Mon, 20 Jul 2026 21:49:08 +0300 Subject: [PATCH 2/2] Updated constructor to avoid breaking changes for other users --- FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt b/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt index a0167cb..de7db9b 100644 --- a/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt +++ b/FlagsmithClient/src/main/java/com/flagsmith/Flagsmith.kt @@ -38,7 +38,7 @@ class Flagsmith constructor( private val enableRealtimeUpdates: Boolean = false, private val analyticsFlushPeriod: Int = DEFAULT_ANALYTICS_FLUSH_PERIOD_SECONDS, private val cacheConfig: FlagsmithCacheConfig = FlagsmithCacheConfig(), - private val defaultFlags: List? = null, + private val defaultFlags: List? = emptyList(), private val requestTimeoutSeconds: Long = 4L, private val readTimeoutSeconds: Long = 6L, private val writeTimeoutSeconds: Long = 6L,