diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 10:24:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:39 +0000 |
commit | 417bd8ad9018337f5177270a03c50b444461a628 (patch) | |
tree | fe51e3b3e1f5d043473c83244e902e68aa621995 /sw/source/filter/ww8/wrtw8nds.cxx | |
parent | coverity#1266444 Explicit null dereferenced (diff) | |
download | core-417bd8ad9018337f5177270a03c50b444461a628.tar.gz core-417bd8ad9018337f5177270a03c50b444461a628.zip |
coverity#1266447 Explicit null dereferenced
Change-Id: I4fc92ef828d549d968692a5a33f8dbcded27f7bb
Diffstat (limited to 'sw/source/filter/ww8/wrtw8nds.cxx')
-rw-r--r-- | sw/source/filter/ww8/wrtw8nds.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index 91e904245c14..bc7185f0b72e 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1506,7 +1506,7 @@ const SvxBrushItem* WW8Export::GetCurrentPageBgBrush() const SfxItemState eState = rFmt.GetItemState(RES_BACKGROUND, true, &pItem); const SvxBrushItem* pRet = static_cast<const SvxBrushItem*>(pItem); - if (SfxItemState::SET != eState || (!pRet->GetGraphic() && + if (SfxItemState::SET != eState || !pRet || (!pRet->GetGraphic() && pRet->GetColor() == COL_TRANSPARENT)) { pRet = &(DefaultItemGet<SvxBrushItem>(*pDoc,RES_BACKGROUND)); |