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

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 23 09:42:31 UTC 2020


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

New commits:
commit e7b92924f8ffb591e70d6898491667ab5fd92e43
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Aug 18 13:46:44 2020 +0300
Commit:     Andras Timar <andras.timar at 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 <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 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 {


More information about the Libreoffice-commits mailing list