diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 10:25:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 12:33:20 +0000 |
commit | fcdae12f366cef3d204ee34ec7618f0c2e1d57ff (patch) | |
tree | 2117bc7e6e99e2dde75c4a50c7855b0113337804 /lotuswordpro | |
parent | coverity#704953 Dereference after null check (diff) | |
download | core-fcdae12f366cef3d204ee34ec7618f0c2e1d57ff.tar.gz core-fcdae12f366cef3d204ee34ec7618f0c2e1d57ff.zip |
coverity#736142 Dereference null return value
Change-Id: I89e0ac7fe236edee43f4ce12789d1ad024d7eb08
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpgrfobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx index cdb5489c8527..d24c9cb87bf1 100644 --- a/lotuswordpro/source/filter/lwpgrfobj.cxx +++ b/lotuswordpro/source/filter/lwpgrfobj.cxx @@ -278,7 +278,7 @@ void LwpGraphicObject::RegisterStyle() if (m_sServerContextFormat[1]=='l'&&m_sServerContextFormat[2]=='c'&&m_sServerContextFormat[3]=='h') { LwpVirtualLayout* pMyLayout = GetLayout(NULL); - if(pMyLayout->IsFrame()) + if (pMyLayout && pMyLayout->IsFrame()) { XFFrameStyle* pXFFrameStyle = new XFFrameStyle(); pXFFrameStyle->SetXPosType(enumXFFrameXPosFromLeft, enumXFFrameXRelFrame); |