mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Avoid NPE
This commit is contained in:
parent
f8c43b4a05
commit
38138e68de
|
|
@ -2333,6 +2333,10 @@ func TestCreateRoomInvite(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if ev == nil {
|
||||
t.Fatal("Membership event for Bob does not exist")
|
||||
}
|
||||
|
||||
// Validate that there is NO displayname in content
|
||||
if gjson.GetBytes(ev.Content(), "displayname").Exists() {
|
||||
t.Fatal("Found displayname in invite")
|
||||
|
|
|
|||
Loading…
Reference in a new issue