From 4d11c8a47a3090d4b1d8d58a8ce59f34ba6e4ca5 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 1 Jul 2012 11:32:33 +0200 Subject: [PATCH] Add null-check before access. --- webcit/static/wclib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- 2.30.2