diff options
author | Dezsi Szabolcs <dezsiszabi@hotmail.com> | 2012-04-20 14:10:56 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-04-20 14:18:38 +0530 |
commit | 1489254311e75a379a129bceeab49643ebea04e0 (patch) | |
tree | d402987a3ef5b6d3e7a1267be809272420a96760 /editeng | |
parent | fe84f6dbab168e9bdc1459c446c4dff0afb17fdc (diff) |
fdo#47436: Fixed crash while opening odt file.
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index efdcadb5a85d..d4b876bc11c9 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1951,7 +1951,8 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) for (int n(0); n != SAL_N_ELEMENTS(aBorders); ++n) { editeng::SvxBorderLine* pLine = const_cast< editeng::SvxBorderLine* >( GetLine( aBorders[n] ) ); - pLine->SetStyle( eBorderStyle ); + if( pLine ) + pLine->SetStyle( eBorderStyle ); } return sal_True; } |