diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 13:10:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 14:22:41 +0000 |
commit | 057a663043aed3cf0d4e8741e49e150a9467e220 (patch) | |
tree | 3f7ff9c6b87a76443583f3e56d9ef16219e7b35a | |
parent | e4cfd04df6ba8f368bac063a71a7943c43d97c5a (diff) |
coverity#704595 Dereference after null check
Change-Id: I2c8aa1163d3eb228259db0c51f5cf9dca0657daf
-rw-r--r-- | cui/source/customize/cfg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index d42203fd5af7..9991dcc8db7e 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -1695,13 +1695,13 @@ void SvxConfigPage::Reset( const SfxItemSet& ) bool bURLToSelectFound = false; if ( !m_aURLToSelect.isEmpty() ) { - if ( pDocData != NULL && pDocData->HasURL( m_aURLToSelect ) ) + if ( pDocData && pDocData->HasURL( m_aURLToSelect ) ) { aSaveInListBox.SelectEntryPos( nPos, true ); pCurrentSaveInData = pDocData; bURLToSelectFound = true; } - else if ( pModuleData->HasURL( m_aURLToSelect ) ) + else if ( pModuleData && pModuleData->HasURL( m_aURLToSelect ) ) { aSaveInListBox.SelectEntryPos( 0, true ); pCurrentSaveInData = pModuleData; |