From 8fea4c27cb6c8c1793ced6dc4e99659a7466aed4 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 7 Feb 2017 22:00:56 +0000 Subject: [PATCH] fix NPE --- src/components/views/elements/MemberEventListSummary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index 61fa0e076f..1a73b5a50e 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -385,7 +385,7 @@ module.exports = React.createClass({ } userEvents[userId].push({ mxEvent: e, - displayName: e.target.name || userId, + displayName: (e.target ? e.target.name : null) || userId, index: index, }); });