Kaydet (Commit) 93e94cd7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1190354 Dereference null return value

Change-Id: I3f99bd8f0cfd8736fec558362819d9a814df8378
üst 21e6fd2b
...@@ -2088,7 +2088,9 @@ void AttributeOutputBase::StartTOX( const SwSection& rSect ) ...@@ -2088,7 +2088,9 @@ void AttributeOutputBase::StartTOX( const SwSection& rSect )
if( GetExport().AddSectionBreaksForTOX() ) if( GetExport().AddSectionBreaksForTOX() )
{ {
sal_uLong nRstLnNum = 0; sal_uLong nRstLnNum = 0;
WW8_SepInfo rInfo( &GetExport( ).pDoc->GetPageDesc( 0 ), rSect.GetParent()->GetFmt() , nRstLnNum ); SwSection *pParent = rSect.GetParent();
WW8_SepInfo rInfo(&GetExport( ).pDoc->GetPageDesc(0),
pParent ? pParent->GetFmt() : NULL, nRstLnNum);
GetExport( ).AttrOutput().SectionBreak( msword::PageBreak, &rInfo ); GetExport( ).AttrOutput().SectionBreak( msword::PageBreak, &rInfo );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment