Kaydet (Commit) 057a6630 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704595 Dereference after null check

Change-Id: I2c8aa1163d3eb228259db0c51f5cf9dca0657daf
üst e4cfd04d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment