This code is null pointer dereferences. so it is Fixed.
Change-Id: I5638026be3e9a64d4d7d1cec1449a653d22d928e
Signed-off-by: jinwooim.bae <jinwooim.bae@samsung.com>
*/
@Override
public void execute() {
- if (curveFrames != null)
- ((AnimatorFrame) keyframe.getPrevChild(frame))
- .setCurveFrames(new ArrayList<AnimatorCurveFrame>());
+ if (curveFrames != null) {
+ AnimatorModel childFrame = keyframe.getPrevChild(frame);
+ if (childFrame != null) {
+ ((AnimatorFrame) childFrame).setCurveFrames(new ArrayList<AnimatorCurveFrame>());
+ }
+ }
+
keyframe.removeChild(frame, true);
AnimatorModelManager animatorModelManager =