diff --git a/android/src/main/java/com/chargebee/android/reactnative/utils/Converter.kt b/android/src/main/java/com/chargebee/android/reactnative/utils/Converter.kt index e7e6991..e233be4 100644 --- a/android/src/main/java/com/chargebee/android/reactnative/utils/Converter.kt +++ b/android/src/main/java/com/chargebee/android/reactnative/utils/Converter.kt @@ -86,9 +86,9 @@ internal fun convertQueryParamsToArray(queryParams: ReadableMap): Array internal fun convertReadableMapToCustomer(customerMap: ReadableMap): CBCustomer { val id = customerMap.getString("id") - val firstName = customerMap.getString("firstName") - val lastName = customerMap.getString("lastName") - val email = customerMap.getString("email") + val firstName = customerMap.getString("firstName") ?: "" + val lastName = customerMap.getString("lastName") ?: "" + val email = customerMap.getString("email") ?: "" return CBCustomer(id, firstName, lastName, email) }