rem: p.border_text = bt[0].firstChild.nodeValue; 
add: if (bt[0].firstChild != null){p.border_text = bt[0].firstChild.nodeValue;}else{p.border_text = "";} 
context: function addPolygon(rslt){      	var xml = rslt.responseXML;	 		var s;			for(var a=0; a<bPSetData.length; a++){				if ( bPSetData[a] != null && bPSetData[a].set_id == editSetId ){					s = a;				}			};  		var n = bPData.length;  		bPData[n] = new Array();			var p = bPData[n];  		p.array_n = n;				 		//shorten var names			var id = xml.documentElement.getElementsByTagName('polygon_id');						p.polygon_id = parseInt(id[0].firstChild.nodeValue);			var nm = xml.documentElement.getElementsByTagName('name');			p.name = nm[0].firstChild.nodeValue;			var cr = xml.documentElement.getElementsByTagName('circle');			p.circle = cr[0].firstChild.nodeValue;			var dt = xml.documentElement.getElementsByTagName('points_data');			var points_data = dt[0].firstChild.nodeValue;	 		p.points_data = points_data.split(",");			var cc = xml.documentElement.getElementsByTagName('circle_center');			var circle_center = cc[0].firstChild.nodeValue;	 		p.circle_center = circle_center.split(",");			var rd = xml.documentElement.getElementsByTagName('radius');			p.radius = rd[0].firstChild.nodeValue;			var bt = xml.documentElement.getElementsByTagName('border_text');			p.border_text = bt[0].firstChild.nodeValue;			var zi = xml.documentElement.getElementsByTagName('zindex');			p.zindex = parseInt(zi[0].firstChild.nodeValue);						p.set_id = bPSetData[s].set_id;			p.style_id = bPSetData[s].style_id;			p.polylinestyle_id = bPSetData[s].polylinestyle_id;			p.plot_on_load = bPSetData[s].plot_on_load;			p.side_panel = bPSetData[s].side_panel;			p.explode = bPSetData[s].explode;			p.array_n = parseInt(n);			//create polygon			attachPolygon(n);			// clear the form			$('polygonform_new').reset();			// update the sets menus			editPolygons();			editPolygonSet(editSetId);			removeAssistant();}	
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/9f985255db12c77c33adbecc5e8cb8cfc60aef62/js_edit_methods.js/buggy/templates/js_edit_methods.js