Bug 203384, document could be null, for example when calling from XPointer processor, patch from jst, r=sicking, sr=heikki, a=asa.

This commit is contained in:
heikki%netscape.com 2005-11-02 07:40:14 +00:00
Родитель fb8ee95af3
Коммит c4763440f3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -77,7 +77,7 @@ nsXPathEvaluator::CreateExpression(const nsAString & aExpression,
nsIDOMXPathExpression **aResult)
{
nsCOMPtr<nsIDocument> doc = do_QueryReferent(mDocument);
ParseContextImpl pContext(aResolver, doc->IsCaseSensitive());
ParseContextImpl pContext(aResolver, doc && doc->IsCaseSensitive());
Expr* expression = ExprParser::createExpr(PromiseFlatString(aExpression),
&pContext);
if (!expression)