From 00acaea3c1c7b4b18221348b912e8eb080187285 Mon Sep 17 00:00:00 2001 From: "law%netscape.com" Date: Thu, 16 Jul 1998 23:26:42 +0000 Subject: [PATCH] Fix for bug#301644; don't call SetContext if we ain't got no context git-svn-id: svn://10.0.0.236/trunk@5756 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cmd/winfe/fmabstra.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/cmd/winfe/fmabstra.cpp b/mozilla/cmd/winfe/fmabstra.cpp index dba23aae6ff..e180ffab3d3 100755 --- a/mozilla/cmd/winfe/fmabstra.cpp +++ b/mozilla/cmd/winfe/fmabstra.cpp @@ -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); }