Fix for bug#301644; don't call SetContext if we ain't got no context

This commit is contained in:
law%netscape.com 1998-07-16 23:26:42 +00:00
parent 1e57359168
commit c414f21aa8

View File

@ -127,8 +127,8 @@ CFormElement *CFormElement::GetFormElement(CAbstractCX *pCX, LO_FormElementData
pRetval = (CFormElement *)pFormData->ele_minimal.FE_Data;
}
// Set up and/or update the relevant information in the class.
if(pRetval != NULL) {
// Set up and/or update the relevant information in the class, if possible.
if(pCX && pRetval != NULL) {
pRetval->SetContext(pCX);
}