summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoros <os@openoffice.org>2010-10-27 08:17:18 +0200
committeros <os@openoffice.org>2010-10-27 08:17:18 +0200
commitb09d09e79b45421be389ab99562e699495ee74d3 (patch)
treeb6a0113883ddc00c13bf8a4d70acf13fee9141cb
parent44520f3198d7f49bdc927e5e5979c4c6a6ea682e (diff)
crash on access to TableNodeInfoInner prevented
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 066a4e9903..e46083b4b6 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -264,7 +264,8 @@ void RtfAttributeOutput::StartParagraph( ww8::WW8TableNodeInfo::Pointer_t pTextN
if ( m_nTableDepth > 0 && !m_bTableCellOpen )
{
ww8::WW8TableNodeInfoInner::Pointer_t pDeepInner( pTextNodeInfo->getInnerForDepth( m_nTableDepth ) );
- if ( pDeepInner->getCell() == 0 )
+ OSL_ENSURE( pDeepInner, "TableNodeInfoInner not found");
+ if ( pDeepInner && pDeepInner->getCell() == 0 )
StartTableRow( pDeepInner );
StartTableCell( pDeepInner );