From 9a6d69b894ef6afb146f6697cc7c5a3c6724deb7 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Sat, 14 Jan 2006 01:09:42 +0000 Subject: [PATCH] Add missing null check (323338, r=mrbkap). --- js/src/jsxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsxml.c b/js/src/jsxml.c index 128c6fe9cde..9df22a9beb0 100644 --- a/js/src/jsxml.c +++ b/js/src/jsxml.c @@ -3056,7 +3056,7 @@ construct: out: qn = (JSXMLQName *) JS_GetPrivate(cx, obj); atom = cx->runtime->atomState.lazy.functionNamespaceURIAtom; - if (atom && + if (qn->uri && atom && (qn->uri == ATOM_TO_STRING(atom) || !js_CompareStrings(qn->uri, ATOM_TO_STRING(atom)))) { if (!JS_ValueToId(cx, STRING_TO_JSVAL(qn->localName), funidp))