From 3d3680e42fbf7472af3f7a20fbd29db29a399882 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 21 Oct 2015 16:11:40 +0100 Subject: [PATCH] NPE fix when accessing event.sender --- src/skins/vector/views/organisms/Notifier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/skins/vector/views/organisms/Notifier.js b/src/skins/vector/views/organisms/Notifier.js index bbd2563db..8a9b2ffdb 100644 --- a/src/skins/vector/views/organisms/Notifier.js +++ b/src/skins/vector/views/organisms/Notifier.js @@ -58,9 +58,9 @@ var NotifierView = { if (ev.getContent().body) msg = ev.getContent().body; } - var avatarUrl = Avatar.avatarUrlForMember( + var avatarUrl = ev.sender ? Avatar.avatarUrlForMember( ev.sender, 40, 40, 'crop' - ); + ) : null; var notification = new global.Notification( title,