From c8a81862eacfbb66adee58cd9c922f2e79e8e954 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 6 Aug 2019 14:12:50 +0100 Subject: [PATCH] Import: fix import of contacts. --- .../syncadapter/ui/importlocal/LocalContactImportFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/etesync/syncadapter/ui/importlocal/LocalContactImportFragment.kt b/app/src/main/java/com/etesync/syncadapter/ui/importlocal/LocalContactImportFragment.kt index cfc6b540..ff66d15a 100644 --- a/app/src/main/java/com/etesync/syncadapter/ui/importlocal/LocalContactImportFragment.kt +++ b/app/src/main/java/com/etesync/syncadapter/ui/importlocal/LocalContactImportFragment.kt @@ -158,7 +158,7 @@ class LocalContactImportFragment : Fragment() { var localContact: LocalContact? = if (contact.uid == null) null else - addressBook.findByUid(contact.uid!!) as LocalContact + addressBook.findByUid(contact.uid!!) as LocalContact? if (localContact != null) { localContact.updateAsDirty(contact) @@ -189,7 +189,7 @@ class LocalContactImportFragment : Fragment() { var localGroup: LocalGroup? = if (group.uid == null) null else - addressBook.findByUid(group.uid!!) as LocalGroup + addressBook.findByUid(group.uid!!) as LocalGroup? if (localGroup != null) { localGroup.updateAsDirty(group, members)