From a4425397bc310e6b515760cbe6728989fafe8c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Maih=C3=B6fer?= Date: Thu, 19 Sep 2024 16:34:38 +0200 Subject: [PATCH] npe --- shared/api/utils/shared_doc_util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/api/utils/shared_doc_util.js b/shared/api/utils/shared_doc_util.js index 1619778..1b357f0 100644 --- a/shared/api/utils/shared_doc_util.js +++ b/shared/api/utils/shared_doc_util.js @@ -356,11 +356,11 @@ export default class SharedDocUtil extends SharedUtil if (!opNames) return; let changed = false; if (opNames.length > 0) this._log.info("removing", opNames.length, "ops from lookup table"); + const cachedLookup = this.getCachedOpLookup(); for (let i = 0; i < opNames.length; i++) { const opName = opNames[i]; if (!opName) continue; - const cachedLookup = this.getCachedOpLookup(); if (!cachedLookup || !cachedLookup.ids || !cachedLookup.names) { this._log.warn("no cache of op lookup table during rename!");