mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 07:57:43 +00:00
Merge pull request #1430 from bemusementpark/fix-null-display-name
Fix NPE on null display name
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user