[Libreoffice-commits] .: sc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Nov 24 02:52:21 PST 2010
sc/source/ui/pagedlg/areasdlg.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 1bcb9e415cb6d82227996914f8d0bf994584aff5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 24 09:35:42 2010 +0000
cppcheck: Possible null pointer dereference
diff --git a/sc/source/ui/pagedlg/areasdlg.cxx b/sc/source/ui/pagedlg/areasdlg.cxx
index 0df17bc..6fbac53 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;
More information about the Libreoffice-commits
mailing list