loleaflet/src/control/Control.JSDialogBuilder.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e7b92924f8ffb591e70d6898491667ab5fd92e43
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Tue Aug 18 13:46:44 2020 +0300
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Sun Aug 23 11:42:09 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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tor Lillqvist <t...@collabora.com>

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js 
b/loleaflet/src/control/Control.JSDialogBuilder.js
index 895af0561..d4737b021 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -485,7 +485,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 {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to