Adding null checks to fix crash. No bug. r=Pike, sr=jst.

This commit is contained in:
peterv%netscape.com 2001-08-21 09:14:51 +00:00
parent ce7442eb89
commit e979d55673

View File

@ -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
/**