mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
fix NPE
This commit is contained in:
parent
59f599af5c
commit
5bdcb64464
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
_recalculateState: function() {
|
||||
if (!this.props.room) return;
|
||||
|
||||
var topic = this.props.room.currentState.getStateEvents('m.room.topic', '');
|
||||
var name = this.props.room.currentState.getStateEvents('m.room.name', '');
|
||||
|
||||
|
|
Loading…
Reference in a new issue