mirror of https://github.com/vector-im/riot-web
fix NPE
parent
d979a028a5
commit
bb184c12a1
|
@ -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 New Issue