mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 04:16:16 +00:00
Fix for bug#301644; don't call SetContext if we ain't got no context
This commit is contained in:
parent
1e57359168
commit
c414f21aa8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user