mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
fix: orEmpty on profilePicture to prevent NPE
This commit is contained in:
parent
4033830b15
commit
ea857110bf
@ -102,7 +102,7 @@ class ConfigurationMessage(val closedGroups: List<ClosedGroup>, val openGroups:
|
||||
configurationProto.addAllClosedGroups(closedGroups.mapNotNull { it.toProto() })
|
||||
configurationProto.addAllOpenGroups(openGroups)
|
||||
configurationProto.displayName = displayName
|
||||
configurationProto.profilePicture = profilePicture
|
||||
configurationProto.profilePicture = profilePicture.orEmpty()
|
||||
configurationProto.profileKey = ByteString.copyFrom(profileKey)
|
||||
val contentProto = SignalServiceProtos.Content.newBuilder()
|
||||
contentProto.configurationMessage = configurationProto.build()
|
||||
|
Loading…
Reference in New Issue
Block a user