fix NPE
This commit is contained in:
parent
d979a028a5
commit
bb184c12a1
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ module.exports = React.createClass({
|
|||
|
||||
render: function() {
|
||||
|
||||
var room = MatrixClientPeg.get().getRoom(this.props.incomingCall.roomId);
|
||||
var room = this.props.incomingCall ? MatrixClientPeg.get().getRoom(this.props.incomingCall.roomId) : null;
|
||||
var caller = room ? room.name : "unknown";
|
||||
return (
|
||||
<div className="mx_IncomingCallBox" id="incomingCallBox">
|
||||
|
|
Loading…
Reference in a new issue