From ad60de30c6c2712fd541ea203095068e76304477 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Fri, 3 Jun 2022 13:38:53 +0200 Subject: [PATCH] enforce not null Signed-off-by: Andy Scherzinger --- .../java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt b/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt index d05e760ed..0033fbe6d 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt +++ b/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt @@ -118,7 +118,7 @@ class ContactAddressBookWorker(val context: Context, workerParameters: WorkerPar val deviceContactsWithNumbers = collectContactsWithPhoneNumbersFromDevice() if (deviceContactsWithNumbers.isNotEmpty()) { - val currentLocale = ConfigurationCompat.getLocales(context.resources.configuration)[0].country + val currentLocale = ConfigurationCompat.getLocales(context.resources.configuration)[0]!!.country val map = mutableMapOf() map["location"] = currentLocale