diff --git a/uriloader/base/nsURILoader.cpp b/uriloader/base/nsURILoader.cpp index 151284f128d4..a03930dcb48f 100644 --- a/uriloader/base/nsURILoader.cpp +++ b/uriloader/base/nsURILoader.cpp @@ -193,7 +193,11 @@ nsresult nsDocumentOpenInfo::Prepare() NS_IMETHODIMP nsDocumentOpenInfo::OnStartRequest(nsIRequest *request, nsISupports * aCtxt) { LOG(("[0x%p] nsDocumentOpenInfo::OnStartRequest", this)); - + MOZ_ASSERT(request); + if (!request) { + return NS_ERROR_UNEXPECTED; + } + nsresult rv = NS_OK; //