Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit ea3de3e2c50de3be166b6d148a458ba4194db126 Author: Wim <wim@42.be> Date: Sat Mar 11 18:55:29 2023 +0000 Fix possible panic in mattermost. (mattermost) Fixes #1947 (#2014) diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 2b44dcf..be24ba1 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -1617 +1617 @@ func (b *Bmattermost) Send(msg config.Message) (string, error) {   if err != nil {   b.Log.Errorf("getting post %s failed: %s", msg.ParentID, err)   } - if post.RootId != "" { + if post != nil && post.RootId != "" {   msg.ParentID = post.RootId   }   }