make sure resource exists before attempting to destroy it

bug=343385
r=ben
This commit is contained in:
myk@mozilla.org
2006-07-05 16:49:17 +00:00
parent 5e208bc8b4
commit 759a33541b

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);
}
}