diff --git a/content/base/src/nsXMLHttpRequest.cpp b/content/base/src/nsXMLHttpRequest.cpp index 2ac59e45f44b..dfef4e8f1150 100644 --- a/content/base/src/nsXMLHttpRequest.cpp +++ b/content/base/src/nsXMLHttpRequest.cpp @@ -802,6 +802,8 @@ nsXMLHttpRequest::OpenRequest(const char *method, NS_IMETHODIMP nsXMLHttpRequest::Open(const char *method, const char *url) { + NS_ENSURE_ARG(url); + nsresult rv; PRBool async = PR_TRUE; char* user = nsnull;