mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-25 21:21:35 +00:00
Fix nil pointer crash in QueryMembershipsForRoom
This commit is contained in:
parent
3c419be6af
commit
01267a34b9
@ -241,6 +241,9 @@ func (r *Queryer) QueryMembershipsForRoom(
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if info == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// If no sender is specified then we will just return the entire
|
// If no sender is specified then we will just return the entire
|
||||||
// set of memberships for the room, regardless of whether a specific
|
// set of memberships for the room, regardless of whether a specific
|
||||||
|
Loading…
Reference in New Issue
Block a user