[Libreoffice-commits] online.git: loleaflet/src

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 23 09:11:15 UTC 2019


 loleaflet/src/layer/vector/Path.Drag.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 40aecb43825549b886add0b83b2ed745562f4baf
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Aug 23 13:03:51 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Sep 23 11:10:56 2019 +0200

    Guard against uncaught "null is not an object" exception
    
    (Not sure whether needed in this branch, I saw the uncaught exception
    over in collabora-online-4 quite some time ago, but can't hurt, right?)
    
    Change-Id: I3b6d25185a3919ef5d15ce1b9e0604ca697c43fe
    Reviewed-on: https://gerrit.libreoffice.org/78006
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/79388

diff --git a/loleaflet/src/layer/vector/Path.Drag.js b/loleaflet/src/layer/vector/Path.Drag.js
index 688278d2d..0b8193247 100644
--- a/loleaflet/src/layer/vector/Path.Drag.js
+++ b/loleaflet/src/layer/vector/Path.Drag.js
@@ -164,6 +164,9 @@ L.Handler.PathDrag = L.Handler.extend(/** @lends  L.Path.Drag.prototype */ {
 			}
 		}
 
+		if (this._startPoint === null)
+			return;
+
 		var x = containerPoint.x;
 		var y = containerPoint.y;
 


More information about the Libreoffice-commits mailing list