NPE fix when accessing event.sender

This commit is contained in:
Kegan Dougal 2015-10-21 16:11:40 +01:00
parent bf40011815
commit 3d3680e42f
1 changed files with 2 additions and 2 deletions

View File

@ -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,