Check if profileKey is null for old accounts

This commit is contained in:
AsamK committed 2021-05-03 18:43:45 +02:00
1 parent 4f578c2645
commit 312c6c8bb2
1 file changed
+2 -1
@@ -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);