mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 07:17:45 +00:00
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