fix NPE for rooms with redacted tombstones

pull/21833/head
Matthew Hodgson 2019-04-03 20:38:25 +01:00
parent c3d3dd1fd7
commit 1153ce43c6
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ export function makeRoomPermalink(roomId) {
// If the roomId isn't actually a room ID, don't try to list the servers. // If the roomId isn't actually a room ID, don't try to list the servers.
// Aliases are already routable, and don't need extra information. // Aliases are already routable, and don't need extra information.
if (roomId[0] !== '!') return permalinkBase; if (!roomId || roomId[0] !== '!') return permalinkBase;
const client = MatrixClientPeg.get(); const client = MatrixClientPeg.get();
const room = client.getRoom(roomId); const room = client.getRoom(roomId);