[Libreoffice-commits] online.git: loleaflet/src
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 14 14:50:08 UTC 2020
loleaflet/src/map/Map.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit f65c8ef71fdabd41add558c706154334cfd3ed00
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu May 14 12:50:17 2020 +0100
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Thu May 14 16:49:48 2020 +0200
Avoid exception during racy startup.
TypeError: Cannot read property '_updateCursorAndOverlay' of undefined
Change-Id: Id6d5ed3df44bb04f9ed456974ee800ed564f1b4a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94195
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 3eb011500..670e625c7 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -1387,7 +1387,8 @@ L.Map = L.Evented.extend({
if (this.editorHasFocus()) {
// The document has the focus.
var doclayer = this._docLayer;
- doclayer._updateCursorAndOverlay();
+ if (doclayer)
+ doclayer._updateCursorAndOverlay();
} else if (acceptInput !== undefined) {
// A dialog has the focus.
this.focus(acceptInput);
More information about the Libreoffice-commits
mailing list