mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 22:03:10 -06:00
Avoid panics by nil pointers
This commit is contained in:
parent
34f4e402c8
commit
18dcb11321
|
|
@ -34,8 +34,10 @@ func NewServerACLs(db storage.Database) *ServerACLs {
|
||||||
logrus.WithError(err).Errorf("Failed to get server ACLs for room %q", room)
|
logrus.WithError(err).Errorf("Failed to get server ACLs for room %q", room)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if state != nil {
|
||||||
acls.OnServerACLUpdate(&state.Event)
|
acls.OnServerACLUpdate(&state.Event)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return acls
|
return acls
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue