From 21e09535896078c4716205e8141f6d3b2182a981 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 20 Aug 2018 17:08:19 -0400 Subject: [PATCH] null check notificationsService --- src/services/environment.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/environment.service.ts b/src/services/environment.service.ts index 44b770673b..cfc6a5e6c0 100644 --- a/src/services/environment.service.ts +++ b/src/services/environment.service.ts @@ -87,7 +87,9 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { } await this.apiService.setUrls(envUrls); - this.notificationsService.init(this); + if (this.notificationsService != null) { + this.notificationsService.init(this); + } return urls; }