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
commitccdedff035db01a64d929d2babdea7e22dcb1bd4 (patch)
treeb99bd8e227c5879f9516105b9e934ef4b268aa30
parentc93958675752ab2b0e42f372e02ae455b916890d (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 73c422b84ed8..651881c926d1 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 );