Skip to content

Node.js based forum software built for the modern web

fix notification crash

barisusakli1349c4907d76
diff --git a/src/user/notifications.js b/src/user/notifications.js
index c8197c785e..64feddda54 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -133,7 +133,7 @@ var async = require('async'),
return notification;
}).filter(function(notification) {
// Remove notifications that do not resolve to a path
- return notification.path !== null;
+ return notification && notification.path !== null;
});
callback(null, notifications);