[Libreoffice-commits] online.git: loleaflet/src
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Apr 17 05:03:23 UTC 2017
loleaflet/src/map/Map.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 28d15220e6087c0ed9564e19575db6bfa4fd6885
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Sun Apr 16 19:47:12 2017 -0400
loleaflet: don't reference uninitialized docLayer
Change-Id: I0ea169474f17aa541f678c7474a6903b85129101
Reviewed-on: https://gerrit.libreoffice.org/36595
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 8d153a67..c76d4393 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -781,7 +781,9 @@ L.Map = L.Evented.extend({
console.debug('sending useractive');
this._socket.sendMessage('useractive');
this._active = true;
- this._docLayer._onMessage('invalidatetiles: EMPTY', null);
+ if (this._doclayer) {
+ this._docLayer._onMessage('invalidatetiles: EMPTY', null);
+ }
if (vex.dialogID > 0) {
var id = vex.dialogID;
vex.dialogID = -1;
More information about the Libreoffice-commits
mailing list