From 2c10557f260d0cafc1b9371548b9fa3d7733a742 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 10 Jun 2019 12:32:53 +0100 Subject: [PATCH] Don't NPE if no third party invite --- src/components/structures/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 5e6d9a5bcd..cda3f60fce 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1553,7 +1553,7 @@ module.exports = React.createClass({ inviterName={inviterName} invitedEmail={invitedEmail} oobData={this.props.oobData} - signUrl={this.props.thirdPartyInvite.inviteSignUrl} + signUrl={this.props.thirdPartyInvite ? this.props.thirdPartyInvite.inviteSignUrl : null} room={this.state.room} />