Merge pull request #7234 from thundernest/fix_export_settings_backport
Don't fail when exporting an identity without a sender name
This commit is contained in:
commit
315cabd7e7
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