Fix SVACE issue in TextController 60/163660/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 12 Dec 2017 17:36:28 +0000 (17:36 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 12 Dec 2017 17:36:28 +0000 (17:36 +0000)
Change-Id: Id4dab4de25d677ccc20d32a06dcc990bc753abf8

dali-toolkit/internal/text/text-controller-impl.cpp

index 566d747..5101640 100644 (file)
@@ -888,7 +888,7 @@ bool Controller::Impl::UpdateModel( OperationsMask operationsRequired )
       TextAbstraction::FontDescription defaultFontDescription;
       TextAbstraction::PointSize26Dot6 defaultPointSize = TextAbstraction::FontClient::DEFAULT_POINT_SIZE;
 
-      if( IsShowingPlaceholderText() && ( NULL != mEventData->mPlaceholderFont ) )
+      if( IsShowingPlaceholderText() && mEventData && ( NULL != mEventData->mPlaceholderFont ) )
       {
         // If the placeholder font is set specifically, only placeholder font is changed.
         defaultFontDescription = mEventData->mPlaceholderFont->mFontDescription;