summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-12 10:25:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-12 11:02:17 +0000
commit756d36a1cc3bbb3431f2c42c9a0265353f6047b1 (patch)
treeb9f0aedd651fa8e35d35cfb9222ae6d062b31c25
parent861643e63f60c8967659e03b7059ec2d6798c277 (diff)
coverity#705463 Dereference null return value
Change-Id: Icf620e065e3b15a8d900a6da00fe979cc45c1f07
-rw-r--r--dbaccess/source/ui/control/FieldDescControl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx
index 241d44df6fd9..75397a1fcc13 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -619,6 +619,8 @@ IMPL_LINK( OFieldDescControl, FormatClickHdl, Button *, /*pButton*/ )
SvxCellHorJustify rOldJustify = pActFieldDescr->GetHorJustify();
Reference< XNumberFormatsSupplier > xSupplier = GetFormatter()->getNumberFormatsSupplier();
SvNumberFormatsSupplierObj* pSupplierImpl = SvNumberFormatsSupplierObj::getImplementation( xSupplier );
+ if (!pSupplierImpl)
+ return 0;
SvNumberFormatter* pFormatter = pSupplierImpl->GetNumberFormatter();
if(::dbaui::callColumnFormatDialog(this,pFormatter,pActFieldDescr->GetType(),nOldFormatKey,rOldJustify,sal_True))