fixing another null crash

This commit is contained in:
Julian Lam
2015-12-19 12:13:40 -05:00
parent f0217ee198
commit 9f14e8ee05

View File

@@ -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;
}