add: if (!result) return false; 
context: function IsSpecialFolderSelected(folderName){	var selectedFolder = GetThreadTreeFolder();	var id = selectedFolder.getAttribute('ref');	var folderResource = RDF.GetResource(id);	if(!folderResource)		return false;	var folderTree = GetFolderTree();	var db = folderTree.database;	var db = db.QueryInterface(Components.interfaces.nsIRDFDataSource);	var property = RDF.GetResource('http://home.netscape.com/NC-rdf#SpecialFolder');	var result = db.GetTarget(folderResource, property , true);	result = result.QueryInterface(Components.interfaces.nsIRDFLiteral);	if(result.Value == folderName)		return true;	return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e18bd7193ae401d81ec31920d5a60aaf4665a095/commandglue.js/clean/mailnews/base/resources/content/commandglue.js