[3.0] Prevention of NULL pointer dereference at EventHandler 78/71778/1 accepted/tizen/common/20160527.153726 accepted/tizen/ivi/20160527.123106 accepted/tizen/ivi/20160602.230910 accepted/tizen/mobile/20160527.121316 accepted/tizen/mobile/20160602.230928 accepted/tizen/tv/20160527.122146 accepted/tizen/tv/20160602.230859 accepted/tizen/wearable/20160527.122659 accepted/tizen/wearable/20160602.230849 submit/tizen/20160527.083551 submit/tizen/20160602.081330
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 27 May 2016 05:39:39 +0000 (14:39 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 27 May 2016 05:44:12 +0000 (14:44 +0900)
Change-Id: Ic5149f3b71da300add2922ad916d2b4b1ecb8094
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
adaptors/wayland/event-handler-wl.cpp

index 07c0909..636de86 100644 (file)
@@ -123,7 +123,10 @@ EventHandler::EventHandler( RenderSurface* surface, CoreEventInterface& coreEven
 
   mImpl = new Impl(this );
 
-  waylandSurface->AssignWindowEventInterface( mImpl );
+  if( waylandSurface )
+  {
+    waylandSurface->AssignWindowEventInterface( mImpl );
+  }
 }
 
 EventHandler::~EventHandler()