From ca4a9795598fb2d0f01ce092f876d1bfc18b4dc3 Mon Sep 17 00:00:00 2001 From: "hjtoi%comcast.net" Date: Thu, 20 Apr 2006 03:38:49 +0000 Subject: [PATCH] Bug 236436, need to null check URL so we won't crash, r+sr=jst. --- content/base/src/nsXMLHttpRequest.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;