summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 12:43:43 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 13:31:38 +0200
commita89f979dea265d68f22daee013ee8c4ee30e6c5b (patch)
tree4c926e60a89a8f0905f28f438b4e219a0d2976e1 /sc/source/ui/dbgui
parentd3c3ba075c485e97c658d145319b36a69c60a5c8 (diff)
coverity#735805 dereference null value
Change-Id: I3782cffb19e45635076f19eb568fc547b9680b0d
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index 572e07e6b79d..ca0fdee39b6e 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -270,9 +270,12 @@ void ScFilterDlg::Init( const SfxItemSet& rArgSet )
pDoc->GetFormatTable()->GetInputLineString( rItem.mfVal, 0, aValStr);
else if (rItem.meType == ScQueryEntry::ByDate)
{
- SvNumberFormatter* pFormatter = pDoc->GetFormatTable();
- pFormatter->GetInputLineString( rItem.mfVal,
- pFormatter->GetStandardFormat( NUMBERFORMAT_DATE), aValStr);
+ if(pDoc)
+ {
+ SvNumberFormatter* pFormatter = pDoc->GetFormatTable();
+ pFormatter->GetInputLineString( rItem.mfVal,
+ pFormatter->GetStandardFormat( NUMBERFORMAT_DATE), aValStr);
+ }
}
else
{