Handle null profile names better.

fork-5.53.8
Greyson Parrelli 2020-07-16 08:34:53 -04:00
rodzic 73d18d3abd
commit 76dd09bc50
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -374,7 +374,7 @@ public class RetrieveProfileJob extends BaseJob {
ProfileKey profileKey = ProfileKeyUtil.profileKeyOrNull(recipient.getProfileKey());
if (profileKey == null) return;
String plaintextProfileName = ProfileUtil.decryptName(profileKey, profileName);
String plaintextProfileName = Util.emptyIfNull(ProfileUtil.decryptName(profileKey, profileName));
if (!Objects.equals(plaintextProfileName, recipient.getProfileName().serialize())) {
String newProfileName = TextUtils.isEmpty(plaintextProfileName) ? ProfileName.EMPTY.serialize() : plaintextProfileName;