diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-24 11:35:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-25 21:56:37 +0100 |
commit | 826cf6f985e790d4e47eec37947eda1c733328c6 (patch) | |
tree | 115793be2cf7cb5ecfa07c2d357cd57b18980e7a /sw | |
parent | 76e950bfafd8b44ee47d7a9573df1571652c52e1 (diff) |
ofz#4732 Null-dereference
Change-Id: I5ed632702f3a2304902b32aa6ac770586cc4ef34
Reviewed-on: https://gerrit.libreoffice.org/47044
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/htmlsect.cxx | 3 |
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 ); } } |