You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
fix NPE
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user