X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-page-path-effect-impl.cpp;h=89268b3caeddce82c5697b3b2a07bf31df2543b7;hp=f12b873de2611d1b0c9ab946d6afa80b7acafdbf;hb=3e39b3bd20678fc2aba9618f782a830014f2062a;hpb=6730c857bcd22578d8d625d808a82fc3dd33e50f;ds=sidebyside diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp index f12b873..89268b3 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp @@ -51,9 +51,13 @@ ScrollViewPagePathEffect::ScrollViewPagePathEffect(Path path, const Vector3& for //Create linear constrainer pointsProperty = Property::Value(Property::ARRAY); Property::Array* array = pointsProperty.GetArray(); - array->PushBack(0.0f); - array->PushBack(1.0f); - array->PushBack(0.0f); + + if( array ) + { + array->PushBack(0.0f); + array->PushBack(1.0f); + array->PushBack(0.0f); + } mLinearConstrainer = Dali::LinearConstrainer::New(); mLinearConstrainer.SetProperty( LinearConstrainer::Property::VALUE, pointsProperty ); }