diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 15:51:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 18:00:50 +0100 |
commit | f97eb186bf44d01073c010d6875b0bc4c889b17e (patch) | |
tree | b2f7bbc46615aad0af97800cc14ffc4a539ce0d8 /sc | |
parent | 4d22bebe5464ce6fb905bcaaf13db3b6587d24d2 (diff) |
coverity#735805 Explicit null dereferenced
Change-Id: I6641930b42f233096f4a0067ab320383ff07a72a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/filtdlg.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx index ca0fdee39b6e..f0860c22a9fd 100644 --- a/sc/source/ui/dbgui/filtdlg.cxx +++ b/sc/source/ui/dbgui/filtdlg.cxx @@ -267,14 +267,19 @@ void ScFilterDlg::Init( const SfxItemSet& rArgSet ) if (aQueryStr.isEmpty()) { if (rItem.meType == ScQueryEntry::ByValue) - pDoc->GetFormatTable()->GetInputLineString( rItem.mfVal, 0, aValStr); + { + if (pDoc) + { + pDoc->GetFormatTable()->GetInputLineString(rItem.mfVal, 0, aValStr); + } + } else if (rItem.meType == ScQueryEntry::ByDate) { - if(pDoc) + if (pDoc) { SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); - pFormatter->GetInputLineString( rItem.mfVal, - pFormatter->GetStandardFormat( NUMBERFORMAT_DATE), aValStr); + pFormatter->GetInputLineString(rItem.mfVal, + pFormatter->GetStandardFormat( NUMBERFORMAT_DATE), aValStr); } } else |