зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
fb8ee95af3
Коммит
c4763440f3
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче