diff --git a/netwerk/protocol/http/HttpChannelParentListener.cpp b/netwerk/protocol/http/HttpChannelParentListener.cpp index 74fe14c70e4..6f5e1afb6f3 100644 --- a/netwerk/protocol/http/HttpChannelParentListener.cpp +++ b/netwerk/protocol/http/HttpChannelParentListener.cpp @@ -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); }