From 1349c4907d76a2c6c0b3abcdcd046903e5e1676f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 24 Feb 2016 22:05:14 +0200 Subject: [PATCH] fix notification crash --- src/user/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);