make sure resource exists before attempting to destroy it

bug=343385
r=ben
This commit is contained in:
myk@mozilla.org
2007-01-14 05:38:02 +00:00
parent bedaa5054b
commit 47fc27842b

View File

@@ -481,7 +481,8 @@ MicrosummaryService.prototype = {
// We don't have to do anything special if the call fails besides
// destroying the Resource object. We can just return the list
// of microsummaries without including page-defined microsummaries.
resource.destroy();
if (resource)
resource.destroy();
LOG("error downloading page to extract its microsummaries: " + e);
}
}