[Libreoffice-commits] online.git: loleaflet/admin
Henry Castro
hcastro at collabora.com
Sun May 27 13:44:24 UTC 2018
loleaflet/admin/src/AdminSocketSettings.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 3bea290370824b042a31b29e296bdf35236d0682
Author: Henry Castro <hcastro at collabora.com>
Date: Sun May 27 09:32:47 2018 -0400
loleaflet: fix "set property 'value' of null"
Change-Id: I5afec52b74937c7620edcebc9d678bb94af27109
diff --git a/loleaflet/admin/src/AdminSocketSettings.js b/loleaflet/admin/src/AdminSocketSettings.js
index 71e6bf9de..6a5950bca 100644
--- a/loleaflet/admin/src/AdminSocketSettings.js
+++ b/loleaflet/admin/src/AdminSocketSettings.js
@@ -64,7 +64,10 @@ var AdminSocketSettings = AdminSocketBase.extend({
var setting = settings[i].split('=');
var settingKey = setting[0];
var settingVal = setting[1];
- document.getElementById(settingKey).value = settingVal;
+ var elem = document.getElementById(settingKey);
+ if (elem) {
+ elem.value = settingVal;
+ }
}
}
else if (textMsg.startsWith('loolserver ')) {
More information about the Libreoffice-commits
mailing list