diff --git a/protocol/messenger_handler.go b/protocol/messenger_handler.go index d0a292a59..ab00ffeea 100644 --- a/protocol/messenger_handler.go +++ b/protocol/messenger_handler.go @@ -2927,9 +2927,11 @@ func (m *Messenger) HandleChatIdentity(state *ReceivedMessageState, ci *protobuf contactModified = true } - err := m.BuildProfileShowcaseFromIdentity(state, ci.ProfileShowcase) - if err != nil { - return err + if ci.ProfileShowcase != nil { + err := m.BuildProfileShowcaseFromIdentity(state, ci.ProfileShowcase) + if err != nil { + return err + } } }