From b0f0d5f6d0b8782c3dafedf758634c5cee954391 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 2 Feb 2016 16:34:41 +0000 Subject: [PATCH] Null check room because those events will be emitted before the room is stored. --- src/components/structures/RoomView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 361595d003..b461ef25a5 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -385,6 +385,7 @@ module.exports = React.createClass({ this._updateTabCompleteList(this.state.room); var room = MatrixClientPeg.get().getRoom(this.props.roomId); + if (!room) return; var me = MatrixClientPeg.get().credentials.userId; if (this.state.joining && room.hasMembershipState(me, "join")) { this.setState({