From: Wilfried Goesgens Date: Sun, 1 Jul 2012 09:32:33 +0000 (+0200) Subject: Add null-check before access. X-Git-Tag: v8.13~32 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4d11c8a47a3090d4b1d8d58a8ce59f34ba6e4ca5 Add null-check before access. --- diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 1594632f0..ae7d20c8a 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -198,7 +198,8 @@ function remove_something(what_to_search, new_visibility) { else { document.poppedLayer = eval('document.layers[\'`' + what_to_search + '\']'); } - document.poppedLayer.innerHTML = ""; + if (document.poppedLayer!= null) + document.poppedLayer.innerHTML = ""; } function unhide_imsg_popup() {