Don't fail when exporting an identity without a sender name
This commit is contained in:
parent
af28c757dd
commit
9e7ee7215d
1 changed files with 5 additions and 3 deletions
|
@ -329,9 +329,11 @@ class SettingsExporter(
|
|||
|
||||
// Write name belonging to the identity
|
||||
val name = prefs[prefix + IDENTITY_NAME_KEY + suffix] as String?
|
||||
serializer.startTag(null, NAME_ELEMENT)
|
||||
serializer.text(name)
|
||||
serializer.endTag(null, NAME_ELEMENT)
|
||||
if (name != null) {
|
||||
serializer.startTag(null, NAME_ELEMENT)
|
||||
serializer.text(name)
|
||||
serializer.endTag(null, NAME_ELEMENT)
|
||||
}
|
||||
|
||||
// Write email address belonging to the identity
|
||||
val email = prefs[prefix + IDENTITY_EMAIL_KEY + suffix] as String?
|
||||
|
|
Loading…
Reference in a new issue