[Tizen] Fix some keyframes devel api crash issue 07/297707/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 21 Jun 2023 03:27:49 +0000 (12:27 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Wed, 23 Aug 2023 06:46:12 +0000 (15:46 +0900)
commit56c8f18bdac1126649a9c231c9bf483c86428233
tree92310d78075408d2af2040a030e037e73f299f25
parent0f6cf24d379fc839763a4e570ae5f496828ec3ec
[Tizen] 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