diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-05-16 07:19:32 +0900 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-05-18 06:21:39 +0000 |
commit | 15e29b817ca95686fc0d1f4453457e281f3148fa (patch) | |
tree | 233184981dbac27f0bc3c434d716944a5ae0354a /cui | |
parent | 6896712f9e5c8005d0c7e4f6ab403a271d9586f7 (diff) |
perform a boundary check
Change-Id: I54ec8841c0f162ee33bcf1de2507465b9c49cb71
Reviewed-on: https://gerrit.libreoffice.org/15744
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 8c3d63371c5f..9b4481b56089 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -700,7 +700,8 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl ) static_cast< SvLBoxString* >( entry.GetItem(2) )->GetText().equals( sPropertyName ); } ); - it->ReplaceItem( new SvLBoxString( &(*it), 0, sDialogValue ), 4 ); + if (it != m_prefBoxEntries.end()) + it->ReplaceItem( new SvLBoxString( &(*it), 0, sDialogValue ), 4 ); } catch( uno::Exception& ) { |