Fix nil pointer crash in QueryMembershipsForRoom

This commit is contained in:
Neil Alexander 2021-03-17 13:58:04 +00:00
parent 3c419be6af
commit 01267a34b9
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -241,6 +241,9 @@ func (r *Queryer) QueryMembershipsForRoom(
if err != nil {
return err
}
if info == nil {
return nil
}
// If no sender is specified then we will just return the entire
// set of memberships for the room, regardless of whether a specific