Prevention of NULL pointer dereference at EventHandler 76/71776/1
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:41:42 +0000 (14:41 +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()