make sure resource exists before attempting to destroy it
bug=343385 r=ben
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user