Merge pull request #5407 from k9mail/fix_npe_in_drawer

Fix possible NullPointerException in K9Drawer
This commit is contained in:
cketti 2021-07-14 14:45:03 +02:00 committed by GitHub
commit ec854e242e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K
val accountItem = ProfileDrawerItem().apply {
isNameShown = true
nameText = account.description
nameText = account.description ?: ""
descriptionText = account.email
identifier = drawerId
tag = account