From 51df3825e53598a4c43ba82afee3ee8e96f307e8 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Fri, 24 Jun 2016 15:11:22 +0100 Subject: [PATCH] add null check on notifications handler --- .../coffee/Features/Notifications/NotificationsHandler.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Notifications/NotificationsHandler.coffee b/services/web/app/coffee/Features/Notifications/NotificationsHandler.coffee index 6d0b6ccfbf..f14139e107 100644 --- a/services/web/app/coffee/Features/Notifications/NotificationsHandler.coffee +++ b/services/web/app/coffee/Features/Notifications/NotificationsHandler.coffee @@ -5,7 +5,7 @@ logger = require("logger-sharelatex") oneSecond = 1000 makeRequest = (opts, callback)-> - if !settings.apis.notifications.url? + if !settings.apis.notifications?.url? return callback() else request(opts, callback)