summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-08-06 14:27:59 +0200
committerAron Budea <aron.budea@collabora.com>2020-08-07 17:32:10 +0200
commitaf3eac30979ea55edac22506f428c686ad46a8cc (patch)
tree347df525d7d9b09c6844375f715fa975990c4ef2
parent00a7bc58c05587e32aaf447280451e8483d7a083 (diff)
Fix resuming after idledistro/collabora/co-4-2-7
In other apps than Calc there was an error when trying to resume after idle: Uncaught TypeError: Cannot set property 'id' of null at HTMLDivElement.restartConnectionFn (Socket.js:490) Change-Id: I0b3c8d907aa220a3b9504ff62b0437c121bd3619 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100241 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 8409f1ce2f6585aa82b0b21c7e9bb791f48b6a1b) Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100350 Tested-by: Aron Budea <aron.budea@collabora.com> Reviewed-by: Aron Budea <aron.budea@collabora.com>
-rw-r--r--loleaflet/src/core/Socket.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 77c813232..41b173209 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -487,7 +487,8 @@ L.Socket = L.Class.extend({
console.debug('idleness: reactivating');
map._documentIdle = false;
// force reinitialization of calcInputBar(formulabar)
- map.dialog._calcInputBar.id = null;
+ if (map.dialog._calcInputBar)
+ map.dialog._calcInputBar.id = null;
return map._activate();
}
return false;