summaryrefslogtreecommitdiff
path: root/cui/source/customize/cfg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-23 13:10:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 14:22:41 +0000
commit057a663043aed3cf0d4e8741e49e150a9467e220 (patch)
tree3f7ff9c6b87a76443583f3e56d9ef16219e7b35a /cui/source/customize/cfg.cxx
parente4cfd04df6ba8f368bac063a71a7943c43d97c5a (diff)
coverity#704595 Dereference after null check
Change-Id: I2c8aa1163d3eb228259db0c51f5cf9dca0657daf
Diffstat (limited to 'cui/source/customize/cfg.cxx')
-rw-r--r--cui/source/customize/cfg.cxx4
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;