Fix for null pointer crash in FetchBindingDocument. Has been r and sr. Just cant remember bug #.

This commit is contained in:
hyatt%netscape.com 2001-08-01 07:50:47 +00:00
Родитель 2f49d5049e
Коммит a939f27d45
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -1264,9 +1264,11 @@ nsXBLService::FetchBindingDocument(nsIContent* aBoundElement, nsIDocument* aBoun
// Add ourselves to the list of loading docs.
nsCOMPtr<nsIBindingManager> bindingManager;
if (aBoundDocument)
aBoundDocument->GetBindingManager(getter_AddRefs(bindingManager));
nsXPIDLCString uri;
aURI->GetSpec(getter_Copies(uri));
if (bindingManager)
bindingManager->PutLoadingDocListener(nsCAutoString(NS_STATIC_CAST(const char*, uri)), xblListener);
// Add our request.