trivial fix for bug 268033 "crash when <bind> has an empty nodeset attribute"

This commit is contained in:
darin%meer.net 2004-11-06 01:28:41 +00:00
parent c279fed7dd
commit 040f12fb03

View File

@ -698,6 +698,7 @@ nsXFormsModelElement::ProcessBind(nsIDOMXPathEvaluator *aEvaluator,
if (NS_FAILED(rv))
return PR_FALSE; // dispatch a binding exception
}
NS_ENSURE_TRUE(result, PR_FALSE);
PRUint32 snapLen;
rv = result->GetSnapshotLength(&snapLen);