diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 20:47:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 21:28:27 +0100 |
commit | cf624463024112689ff8593fd6fd82a488c07566 (patch) | |
tree | 6e8026d38b50db9fd7144aff4a60a36c4ccaaac4 /sc | |
parent | 105021a1f3d103803dab2d8f277eea2a46e993f5 (diff) |
coverity#735806 Dereference after null check
Change-Id: Ie7a05e694585bcc624bd69b4400d84a05fbc48fb
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/filtdlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx index b6ff4e153f5b..7824f09de579 100644 --- a/sc/source/ui/dbgui/filtdlg.cxx +++ b/sc/source/ui/dbgui/filtdlg.cxx @@ -294,7 +294,7 @@ void ScFilterDlg::Init( const SfxItemSet& rArgSet ) } else if ( i == 0 ) { - nFieldSelPos = GetFieldSelPos( pViewData->GetCurX() ); + nFieldSelPos = pViewData ? GetFieldSelPos(pViewData->GetCurX()) : 0; rEntry.nField = nFieldSelPos ? (theQueryData.nCol1 + static_cast<SCCOL>(nFieldSelPos) - 1) : static_cast<SCCOL>(0); rEntry.bDoQuery=true; |