forked from MirrorHub/mautrix-whatsapp
Fix potential nil pointer crash
This commit is contained in:
parent
4a13ae731a
commit
9fa0ad923d
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ func (portal *Portal) CreateMatrixRoom(user *User) error {
|
|||
portal.SyncParticipants(metadata)
|
||||
} else {
|
||||
customPuppet := portal.bridge.GetPuppetByCustomMXID(user.MXID)
|
||||
if customPuppet.CustomIntent() != nil {
|
||||
if customPuppet != nil && customPuppet.CustomIntent() != nil {
|
||||
_ = customPuppet.CustomIntent().EnsureJoined(portal.MXID)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue