fix enlightenment crash by accessing null pointer.

Summary: e_client_below_get can return null, so added null check code.

Reviewers: raster, zmike

CC: cedric

Differential Revision: https://phab.enlightenment.org/D857
This commit is contained in:
Seunghun Lee 2014-05-14 09:09:30 -04:00 committed by Mike Blumenkrantz
parent 60d78371db
commit 3c416438b0
1 changed files with 6 additions and 2 deletions

View File

@ -200,8 +200,12 @@ _e_comp_object_layers_add(E_Comp_Object *cw, E_Comp_Object *above, E_Comp_Object
#ifndef E19_RELEASE_BUILD
if (layer_cw)
{
if (cw->comp->layers[cw->layer].obj == e_client_below_get(cw->ec)->frame)
CRI("ACK!");
E_Client *below_ec = e_client_below_get(cw->ec);
if (below_ec)
{
if (cw->comp->layers[cw->layer].obj == below_ec->frame)
CRI("ACK!");
}
}
#endif
}