From 5545aae5cbfe23fd00d58107a78c260dd6604879 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 29 Nov 2017 22:04:35 +0000 Subject: [PATCH] svg.js: check for missing embed source (Forum #80322) git-svn-id: https://svn.fhem.de/fhem/trunk@15523 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/www/pgm2/svg.js b/fhem/www/pgm2/svg.js index 929d70991..40bb7dbb7 100644 --- a/fhem/www/pgm2/svg.js +++ b/fhem/www/pgm2/svg.js @@ -352,7 +352,7 @@ svg_init(par) // also called directly from perl, in race condition var e = this; var src = $(e).attr("src"); var ed = FW_getSVG(e); - if(src.indexOf("SVG_showLog") < 0 || !ed) + if(!src || src.indexOf("SVG_showLog") < 0 || !ed) return; var sTag = $("svg", ed)[0]; // "not well-formed" warning in FireFox if((par && $(sTag).attr("id") != par))