Bug 620181 crash [@ nsXBLPrototypeBinding::LocateInstance] if the while loop condition becomes false

r=neil
This commit is contained in:
timeless@mozdev.org 2011-03-26 00:39:12 -04:00
parent 448d7c770e
commit 2a923ad547

View File

@ -896,6 +896,10 @@ nsXBLPrototypeBinding::LocateInstance(nsIContent* aBoundElement,
binding = binding->GetBaseBinding();
}
NS_ABORT_IF_FALSE(binding, "Bug 620181 this is unexpected");
if (!binding)
return nsnull;
nsInsertionPointList* points = nsnull;
if (anonContent == copyParent)
binding->GetInsertionPointsFor(aBoundElement, &points);