diff options
author | Muthu Subramanian <sumuthu@collabora.com> | 2014-04-04 12:10:01 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@collabora.com> | 2014-04-04 12:10:01 +0530 |
commit | cb1384b324580f23f652a1d8b922e94a7a212f1e (patch) | |
tree | e2e88f46824adda36913d8cb2c86769b0164965a /sd | |
parent | 240b8c63ff67510a0694cee9ebec310157e24307 (diff) |
cp#1000054: Avoid crashing.
Change-Id: Iedafa35cfedce1d56468774fcb6bbfa8e42612df
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/stlpool.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 8a7cc23d11cc..19f3031993cb 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -655,6 +655,8 @@ void SdStyleSheetPool::CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily it != aSheetsWithFamily.end(); ++it ) { rtl::Reference< SfxStyleSheetBase > xSheet = GetStyleSheetByPositionInIndex( *it ); + if( !xSheet.is() ) + continue; rtl::OUString aName( xSheet->GetName() ); // now check whether we already have a sheet with the same name |