summaryrefslogtreecommitdiff
path: root/sc/source/ui/pagedlg
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-24 09:35:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-24 09:35:42 +0000
commit9d951fe453c1fa6eb5ed98e92931fc6c43bad802 (patch)
treed887d59aae7d618c3feb84755a62ade0b1c2417a /sc/source/ui/pagedlg
parent89df5063777396d0e52d34fc753931af5ec1f0f2 (diff)
cppcheck: Possible null pointer dereference
Diffstat (limited to 'sc/source/ui/pagedlg')
-rw-r--r--sc/source/ui/pagedlg/areasdlg.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/pagedlg/areasdlg.cxx b/sc/source/ui/pagedlg/areasdlg.cxx
index 82b47ffe76e0..95e669e091a2 100644
--- a/sc/source/ui/pagedlg/areasdlg.cxx
+++ b/sc/source/ui/pagedlg/areasdlg.cxx
@@ -426,7 +426,11 @@ BOOL ScPrintAreasDlg::Impl_CheckRefStrings()
else if ( !bRepeatColOk ) pEd = &aEdRepeatCol;
ERRORBOX( STR_INVALID_TABREF );
- pEd->GrabFocus();
+
+ OSL_ASSERT(pEd);
+
+ if (pEd)
+ pEd->GrabFocus();
}
return bOk;