Skip to content

Node.js based forum software built for the modern web

more notif crash fixes

Julian Lamd9125c215c51
diff --git a/src/notifications.js b/src/notifications.js
index ecfbcbd569..b76863e7e5 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -396,7 +396,7 @@ var async = require('async'),
// Filter out duplicates
notifications = notifications.filter(function(notifObj, idx) {
- if (!notifObj.mergeId) {
+ if (!notifObj || !notifObj.mergeId) {
return true;
}