Bug 608258 - Crash at visiting AMO [r=jdm a=blocking-fennecb2]

This commit is contained in:
Mark Finkle 2010-10-29 11:38:26 -04:00
parent c13d5f5238
commit 275d1802e2

View File

@ -144,7 +144,7 @@ HttpChannelParentListener::GetInterface(const nsIID& aIID, void **result)
}
if (aIID.Equals(NS_GET_IID(nsISecureBrowserUI))) {
if (!mActiveChannel && !mActiveChannel->mTabParent)
if (!mActiveChannel || !mActiveChannel->mTabParent)
return NS_NOINTERFACE;
return mActiveChannel->mTabParent->QueryInterface(aIID, result);
}