From 9823d8dcbdb006597147c9169765cdde9404bb39 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 6 Mar 2014 19:27:43 +0000 Subject: [PATCH] fhemweb.js: avoid the crash on the "home" page git-svn-id: https://svn.fhem.de/fhem/trunk@5150 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 911714fe1..82289e51f 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -139,9 +139,12 @@ FW_longpoll() filter=".*;iconPath="+name; } if(filter == "") { - var room = document.getElementById("content").getAttribute("room"); - if(room) - filter="room="+room; + var content = document.getElementById("content"); + if(content) { + var room = content.getAttribute("room"); + if(room) + filter="room="+room; + } } var iP = document.body.getAttribute("iconPath");