diff options
Diffstat (limited to 'cui/source/customize')
-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; |