From c5aba8d50a3d5e25d36727c81160912017577f66 Mon Sep 17 00:00:00 2001 From: Julien Heanley Date: Tue, 8 Apr 2014 14:01:52 +0100 Subject: [PATCH] (PropertyNotification) Fix for adding notifications before ProxyObject's scene object has been created [Issue#] N/A [Problem] Calling PropertyNotification::SetNotifyMode could cause a crash in update thread [Cause] The message would be sent off to update scene object value even when scene object had not been created [Solution] Prevent notify mode message from being sent Change-Id: I36dabb991873fa1efc5fcb8b7f7bf111847cba3e Signed-off-by: Julien Heanley --- dali/internal/event/common/property-notification-impl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dali/internal/event/common/property-notification-impl.cpp b/dali/internal/event/common/property-notification-impl.cpp index 2c28bef..734c4c4 100644 --- a/dali/internal/event/common/property-notification-impl.cpp +++ b/dali/internal/event/common/property-notification-impl.cpp @@ -188,7 +188,10 @@ Property::Index PropertyNotification::GetTargetProperty() const void PropertyNotification::SetNotifyMode( NotifyMode mode ) { mNotifyMode = mode; - PropertyNotificationSetNotifyModeMessage( mUpdateManager, mPropertyNotification, mode ); + if( mPropertyNotification ) + { + PropertyNotificationSetNotifyModeMessage( mUpdateManager, mPropertyNotification, mode ); + } } PropertyNotification::NotifyMode PropertyNotification::GetNotifyMode() -- 2.7.4