mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-05-11 00:05:11 -04:00
handle null names at importing gracefully
This commit is contained in:
@@ -135,7 +135,7 @@ class VcfImporter(val activity: SimpleActivity) {
|
||||
targetContactSource, starred, contactId, thumbnailUri, photo, notes, groups, organization, websites, IMs)
|
||||
|
||||
// if there is no N and ORG fields at the given contact, only FN, treat it as an organization
|
||||
if (contact.getNameToDisplay().isEmpty() && contact.organization.isEmpty() && ezContact.formattedName.value.isNotEmpty()) {
|
||||
if (contact.getNameToDisplay().isEmpty() && contact.organization.isEmpty() && ezContact.formattedName?.value?.isNotEmpty() == true) {
|
||||
contact.organization.company = ezContact.formattedName.value
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user