diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 10:23:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:39 +0000 |
commit | caeb3dead010f6add6b4ea3f57ff0f3f7991ab18 (patch) | |
tree | bcdf444d93328a39a5706a9a2111570b10c7c21f /sw | |
parent | bb12434f9fd9766598955a2257c62b4e3c3090f2 (diff) |
coverity#1266444 Explicit null dereferenced
Change-Id: I7b7beddf7769d92152c483eacd957348717b4a22
Diffstat (limited to 'sw')
-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 8a05642db44d..91e904245c14 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1526,7 +1526,7 @@ SvxBrushItem WW8Export::TrueFrameBgBrush(const SwFrmFmt &rFlyFmt) const SfxItemState eState = pFlyFmt->GetItemState(RES_BACKGROUND, true, &pItem); pRet = static_cast<const SvxBrushItem*>(pItem); - if (SfxItemState::SET != eState || (!pRet->GetGraphic() && + if (SfxItemState::SET != eState || !pRet || (!pRet->GetGraphic() && pRet->GetColor() == COL_TRANSPARENT)) { pRet = 0; |