loleaflet/src/layer/vector/Path.Drag.js | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 40aecb43825549b886add0b83b2ed745562f4baf Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Fri Aug 23 13:03:51 2019 +0300 Commit: Tor Lillqvist <t...@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 <t...@collabora.com> Tested-by: Tor Lillqvist <t...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits