[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 18 11:08:40 UTC 2020
loleaflet/src/control/Control.JSDialogBuilder.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b4ea674a998bf28186d57cd83e6b108cc7ceb917
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Aug 18 13:46:44 2020 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Aug 18 13:08:22 2020 +0200
Guard against TypeError: null is not an object
Change-Id: I9a7c708bf753891d54ce8da91b2e9aaeb352cd45
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100913
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 7f515566d..fc3cf6644 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -480,7 +480,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (builder.wizard && data.enabled !== 'false') {
$(sectionTitle).click(function(event, data) {
builder.wizard.goLevelDown(contentDiv, data);
- if (contentNode.onshow)
+ if (contentNode && contentNode.onshow)
contentNode.onshow();
});
} else {
More information about the Libreoffice-commits
mailing list