fixing another null crash

This commit is contained in:
Julian Lam
2015-12-19 12:13:40 -05:00
parent f73e6eb4a1
commit fe5e5ea8ef

View File

@@ -344,7 +344,7 @@ var async = require('async'),
notifications = mergeIds.reduce(function(notifications, mergeId) { notifications = mergeIds.reduce(function(notifications, mergeId) {
isolated = notifications.filter(function(notifObj) { isolated = notifications.filter(function(notifObj) {
if (!notifObj.hasOwnProperty('mergeId')) { if (!notifObj || !notifObj.hasOwnProperty('mergeId')) {
return false; return false;
} }