Merge pull request #1430 from bemusementpark/fix-null-display-name

Fix NPE on null display name
This commit is contained in:
Andrew
2024-03-13 11:19:09 +10:30
committed by GitHub
2 changed files with 5 additions and 10 deletions

View File

@@ -182,7 +182,7 @@ open class Storage(
}
override fun getUserProfile(): Profile {
val displayName = TextSecurePreferences.getProfileName(context)!!
val displayName = TextSecurePreferences.getProfileName(context)
val profileKey = ProfileKeyUtil.getProfileKey(context)
val profilePictureUrl = TextSecurePreferences.getProfilePictureURL(context)
return Profile(displayName, profileKey, profilePictureUrl)