fix: orEmpty on profilePicture to prevent NPE

This commit is contained in:
jubb 2021-02-24 16:32:01 +11:00
parent 4033830b15
commit ea857110bf

View File

@ -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()