diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-10 11:35:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-10 11:35:53 +0100 |
commit | b44b8349a52b9f8550eea7a0c4bacaad5e250814 (patch) | |
tree | 53b70d48ba9d7ea0f33e3b5dc05d683f32fa4ddb | |
parent | b3a5142c181d3b9d9067cb78a254285e335fbaef (diff) |
Related: rhbz#689053, protect against immediate crash here
-rw-r--r-- | sw/source/core/crsr/trvltbl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx index 0c8dc4fbd48f..680b2c01009a 100644 --- a/sw/source/core/crsr/trvltbl.cxx +++ b/sw/source/core/crsr/trvltbl.cxx @@ -755,6 +755,10 @@ String SwCrsrShell::GetBoxNms() const } while ( pFrm && !pFrm->IsCellFrm() ); OSL_ENSURE( pFrm, "kein Frame zur Box" ); + + if( !pFrm ) + return sNm; + sNm = ((SwCellFrm*)pFrm)->GetTabBox()->GetName(); sNm += ':'; pPos = pTblCrsr->End(); |