From 057a663043aed3cf0d4e8741e49e150a9467e220 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 23 Feb 2014 13:10:11 +0000 Subject: coverity#704595 Dereference after null check Change-Id: I2c8aa1163d3eb228259db0c51f5cf9dca0657daf --- cui/source/customize/cfg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source') 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; -- cgit