diff --git a/src/notifications.js b/src/notifications.js index 2340f50dba..c358f49ad9 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -344,7 +344,7 @@ var async = require('async'), notifications = mergeIds.reduce(function(notifications, mergeId) { isolated = notifications.filter(function(notifObj) { - if (!notifObj.hasOwnProperty('mergeId')) { + if (!notifObj || !notifObj.hasOwnProperty('mergeId')) { return false; }