diff --git a/mozilla/network/module/nsNetStubs.cpp b/mozilla/network/module/nsNetStubs.cpp index 009a948dce0..db3ce40aef3 100644 --- a/mozilla/network/module/nsNetStubs.cpp +++ b/mozilla/network/module/nsNetStubs.cpp @@ -424,7 +424,7 @@ void FE_SetRefreshURLTimer(MWContext *pContext, URL_Struct *URL_s) nsISupports* container; rv = pConn->pURL->GetContainer(&container); - if (rv == NS_OK) { + if (container && (rv == NS_OK)) { rv = container->QueryInterface(kRefreshURLIID, (void**)&IRefreshURL); if(NS_SUCCEEDED(rv)) { nsIURL* newURL;