From 2cf5d767b5f001a5cf13a71fa89ad29ecc8d1498 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 10 May 2021 09:52:45 -0500 Subject: [PATCH] Fix null search service checking (#372) * Do not reset Search Index if SearchService is null * Check lambda exists * Fix Chalk --- src/services/cipher.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/cipher.service.ts b/src/services/cipher.service.ts index 39a9cb2f12..04abfc97d3 100644 --- a/src/services/cipher.service.ts +++ b/src/services/cipher.service.ts @@ -296,7 +296,7 @@ export class CipherService implements CipherServiceAbstraction { async getAllDecrypted(): Promise { if (this.decryptedCipherCache != null) { const userId = await this.userService.getUserId(); - if ((this.searchService().indexedEntityId ?? userId) !== userId) + if (this.searchService != null && (this.searchService().indexedEntityId ?? userId) !== userId) { await this.searchService().indexCiphers(userId, this.decryptedCipherCache); }