зеркало из https://github.com/mozilla/pjs.git
Fix for null pointer crash in FetchBindingDocument. Has been r and sr. Just cant remember bug #.
This commit is contained in:
Родитель
2f49d5049e
Коммит
a939f27d45
|
@ -1264,9 +1264,11 @@ nsXBLService::FetchBindingDocument(nsIContent* aBoundElement, nsIDocument* aBoun
|
||||||
|
|
||||||
// Add ourselves to the list of loading docs.
|
// Add ourselves to the list of loading docs.
|
||||||
nsCOMPtr<nsIBindingManager> bindingManager;
|
nsCOMPtr<nsIBindingManager> bindingManager;
|
||||||
|
if (aBoundDocument)
|
||||||
aBoundDocument->GetBindingManager(getter_AddRefs(bindingManager));
|
aBoundDocument->GetBindingManager(getter_AddRefs(bindingManager));
|
||||||
nsXPIDLCString uri;
|
nsXPIDLCString uri;
|
||||||
aURI->GetSpec(getter_Copies(uri));
|
aURI->GetSpec(getter_Copies(uri));
|
||||||
|
if (bindingManager)
|
||||||
bindingManager->PutLoadingDocListener(nsCAutoString(NS_STATIC_CAST(const char*, uri)), xblListener);
|
bindingManager->PutLoadingDocListener(nsCAutoString(NS_STATIC_CAST(const char*, uri)), xblListener);
|
||||||
|
|
||||||
// Add our request.
|
// Add our request.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче