Fix some keyframes devel api crash issue 35/294535/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 21 Jun 2023 03:27:49 +0000 (12:27 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 21 Jun 2023 06:33:06 +0000 (15:33 +0900)
commit1a4c68ba5542b2e25f1b8770160f3ef8917c3794
tree05da20247f4aa29f94e022909aae12d12ebc744e
parent6f9543ddc46566f58d26129ce94a9595d9199bee
Fix some keyframes devel api crash issue

There was some nullptr error for some DevelKeyFrames API.

1. Let we allow to call GetKeyFrameCount even we never call Add.
2. Let we only change value if keyframe type is same as SetKeyFrameValue type.

Change-Id: I6a53648df3e19556c8462fbd4fd39340dc593373
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali/utc-Dali-Animation.cpp
dali/internal/event/animation/key-frames-impl.cpp