summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/html/htmlsect.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx
index 17995c420482..7b256856e4ba 100644
--- a/sw/source/filter/html/htmlsect.cxx
+++ b/sw/source/filter/html/htmlsect.cxx
@@ -826,7 +826,8 @@ void SwHTMLParser::MovePageDescAttrs( SwNode *pSrcNd,
if( SfxItemState::SET == pFrameFormat->GetAttrSet().
GetItemState( RES_PAGEDESC, false, &pItem ) )
{
- pDestContentNd->SetAttr( *pItem );
+ if (pDestContentNd)
+ pDestContentNd->SetAttr(*pItem);
pFrameFormat->ResetFormatAttr( RES_PAGEDESC );
}
}