diff --git a/lib/src/main/java/org/asamk/signal/manager/syncStorage/ContactRecordProcessor.java b/lib/src/main/java/org/asamk/signal/manager/syncStorage/ContactRecordProcessor.java index 12740fbd1..2863874b0 100644 --- a/lib/src/main/java/org/asamk/signal/manager/syncStorage/ContactRecordProcessor.java +++ b/lib/src/main/java/org/asamk/signal/manager/syncStorage/ContactRecordProcessor.java @@ -267,8 +267,12 @@ protected void updateLocal(StorageRecordUpdate update) thro .withGivenName(nullIfEmpty(contactProto.systemGivenName)) .withFamilyName(nullIfEmpty(contactProto.systemFamilyName)) .withNickName(nullIfEmpty(contactProto.systemNickname)) - .withNickNameGivenName(nullIfEmpty(contactProto.givenName)) - .withNickNameFamilyName(nullIfEmpty(contactProto.familyName)) + .withNickNameGivenName(nullIfEmpty(contactProto.nickname == null + ? null + : contactProto.nickname.given)) + .withNickNameFamilyName(nullIfEmpty(contactProto.nickname == null + ? null + : contactProto.nickname.family)) .withNote(nullIfEmpty(contactProto.note)) .withUnregisteredTimestamp(contactProto.unregisteredAtTimestamp == 0 ? null