rem: if( ruleText.length > 0) 
add: if( ruleText && ruleText.length > 0) 
context:    var addRRuleNode = function( xmlDocument, eventNode )   {      // extremly ugly hack, but this will be done in libical soon      var ruleText = "";      var eventText = calendarEvent.getIcalString();      var i = eventText.indexOf("RRULE");      if( i > -1)      {         ruleText = eventText.substring(i+8);               ruleText = ruleText.substring(0, ruleText.indexOf("\n"));      }      if( ruleText.length > 0)      {         var propertyNode = xmlDocument.createElement( "property" );         propertyNode.setAttribute( "name", "RRULE" );         var valueNode = xmlDocument.createElement( "value" );         var textNode  = xmlDocument.createTextNode( ruleText );         valueNode.appendChild( textNode );         propertyNode.appendChild( valueNode );         eventNode.appendChild( propertyNode );      }   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/adbd8e213184d86029e979b353ba23457a85e6e8/importExport.js/clean/calendar/resources/content/importExport.js