mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixing another null crash
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user