Skip to content

Node.js based forum software built for the modern web

fixing another null crash

Julian Lamfe5e5ea8ef93
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;
}