diff --git a/android-kit-base/src/test/kotlin/com/mparticle/kits/KitConfigurationTest.kt b/android-kit-base/src/test/kotlin/com/mparticle/kits/KitConfigurationTest.kt index b4fae413d..538648014 100644 --- a/android-kit-base/src/test/kotlin/com/mparticle/kits/KitConfigurationTest.kt +++ b/android-kit-base/src/test/kotlin/com/mparticle/kits/KitConfigurationTest.kt @@ -721,6 +721,15 @@ class KitConfigurationTest { Assert.assertEquals(0, result.size()) } + @Test + fun testConvertToSparseArray_When_JSON_IS_NULL() { + val kitConfiguration = MockKitConfiguration() + val method: Method = MockKitConfiguration::class.java.getDeclaredMethod("convertToSparseArray", JSONObject::class.java) + method.isAccessible = true + val result = method.invoke(kitConfiguration, null) as SparseBooleanArray + Assert.assertEquals(0, result.size()) + } + @Test fun testConvertToSparseArray_When_JSON_Data_IS_INVALID() { val kitConfiguration = MockKitConfiguration()