mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 22:09:32 +00:00
Adding null checks to fix crash. No bug. r=Pike, sr=jst.
This commit is contained in:
parent
ce7442eb89
commit
e979d55673
@ -1504,11 +1504,18 @@ void XSLTProcessor::processAttrValueTemplate
|
||||
{
|
||||
AttributeValueTemplate* avt = 0;
|
||||
avt = exprParser.createAttributeValueTemplate(attValue);
|
||||
if (!avt) {
|
||||
return;
|
||||
}
|
||||
|
||||
ExprResult* exprResult = avt->evaluate(context,ps);
|
||||
if (!exprResult) {
|
||||
return;
|
||||
}
|
||||
|
||||
exprResult->stringValue(result);
|
||||
delete exprResult;
|
||||
delete avt;
|
||||
|
||||
} //-- processAttributeValueTemplate
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user