Fix SVACE issue in TextController 61/163661/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 19:27:06 +0000 (19:27 +0000)
Change-Id: Id4dab4de25d677ccc20d32a06dcc990bc753abf8
(cherry picked from commit 615b92ce2555a675bfadd2a078728cb9dd222954)

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

index d0c3d53..7ac3f37 100644 (file)
@@ -899,7 +899,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;