rem: SetBackgroundColorButton(commandNode.getAttribute("state")); 
add: if (commandNode) { var color = commandNode.getAttribute("state"); var button = document.getElementById("BackgroundColorButton"); if (button) { if (!color) color = gDefaultBackgroundColor; button.setAttribute("style", "background-color:"+color); } } 
context: function onBackgroundColorChange(){  var commandNode = document.getElementById("cmd_backgroundColor");  SetBackgroundColorButton(commandNode.getAttribute("state"));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/99b4f0744cb08f4fc033537d1d0ebbeb1ef8be63/editor.js/clean/editor/ui/composer/content/editor.js