Kaydet (Commit) fcdae12f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736142 Dereference null return value

Change-Id: I89e0ac7fe236edee43f4ce12789d1ad024d7eb08
üst d112c8e6
...@@ -278,7 +278,7 @@ void LwpGraphicObject::RegisterStyle() ...@@ -278,7 +278,7 @@ void LwpGraphicObject::RegisterStyle()
if (m_sServerContextFormat[1]=='l'&&m_sServerContextFormat[2]=='c'&&m_sServerContextFormat[3]=='h') if (m_sServerContextFormat[1]=='l'&&m_sServerContextFormat[2]=='c'&&m_sServerContextFormat[3]=='h')
{ {
LwpVirtualLayout* pMyLayout = GetLayout(NULL); LwpVirtualLayout* pMyLayout = GetLayout(NULL);
if(pMyLayout->IsFrame()) if (pMyLayout && pMyLayout->IsFrame())
{ {
XFFrameStyle* pXFFrameStyle = new XFFrameStyle(); XFFrameStyle* pXFFrameStyle = new XFFrameStyle();
pXFFrameStyle->SetXPosType(enumXFFrameXPosFromLeft, enumXFFrameXRelFrame); pXFFrameStyle->SetXPosType(enumXFFrameXPosFromLeft, enumXFFrameXRelFrame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment