Fix prevent issue - animatableProperty might be null 18/40918/3
authorYoonsang Lee <ysang114.lee@samsung.com>
Wed, 10 Jun 2015 08:21:49 +0000 (17:21 +0900)
committerYoonsang Lee <ysang114.lee@samsung.com>
Thu, 11 Jun 2015 00:24:12 +0000 (09:24 +0900)
commitb2c9c0d6007624330b532a7858b57fa4e81ecff2
tree05215fd8a3c1324508e6a77337013fe4fce4f917
parent7764df3bdd3942d642c7c47cc126e1757fb1756f
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