Fix prevent issue - animatableProperty might be null
authorYoonsang Lee <ysang114.lee@samsung.com>
Wed, 10 Jun 2015 08:21:49 +0000 (17:21 +0900)
committerYoonsang Lee <ysang114.lee@samsung.com>
Tue, 23 Jun 2015 02:23:02 +0000 (11:23 +0900)
commit37a2d57a336fca5cd3f36cdb6368559622df0888
tree902560f81ed4009eb2f64addd433b88e9957bc68
parent351a2acda78143a3485a2fbb260d8f0d25f964b9
Fix prevent issue - animatableProperty might be null

- animatableProperty might be null, so move dereferencing code into the null
check block

<Prevent message>
8. var_compare_op: Comparing animatableProperty to null implies that animatableProperty might be null.
1235        if(!animatableProperty)

CID 385005 (#1 of 1): Dereference after null check (FORWARD_NULL)
10. var_deref_op: Dereferencing null pointer animatableProperty.
1245        mAnimatableProperties.PushBack( new AnimatablePropertyMetadata( index, typeInfo->GetComponentIndex(index), animatableProperty->type, animatableProperty->GetSceneGraphProperty() ) );

Change-Id: Ibf6a6670e258b8729b86da80991e0a3ece64452e
dali/internal/event/common/object-impl.cpp