loleaflet/src/map/Map.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 28d15220e6087c0ed9564e19575db6bfa4fd6885
Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com>
    Tested-by: Ashod Nakashian <ashnak...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to