Check if profileKey is null for old accounts

This commit is contained in:
AsamK 2021-05-03 18:43:28 +02:00
parent 4f578c2645
commit 312c6c8bb2

View file

@ -577,7 +577,8 @@ public class SignalAccount implements Closeable {
storageKey == null ? null : Base64.getEncoder().encodeToString(storageKey.serialize()))
.put("preKeyIdOffset", preKeyIdOffset)
.put("nextSignedPreKeyId", nextSignedPreKeyId)
.put("profileKey", Base64.getEncoder().encodeToString(profileKey.serialize()))
.put("profileKey",
profileKey == null ? null : Base64.getEncoder().encodeToString(profileKey.serialize()))
.put("registered", registered)
.putPOJO("groupStore", groupStoreStorage)
.putPOJO("stickerStore", stickerStoreStorage);