From 45fed827e07fd2fb8f46f392b4a86c516ca25663 Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Fri, 27 May 2016 14:39:39 +0900 Subject: [PATCH] [3.0] Prevention of NULL pointer dereference at EventHandler Change-Id: Ic5149f3b71da300add2922ad916d2b4b1ecb8094 Signed-off-by: Seoyeon Kim --- adaptors/wayland/event-handler-wl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adaptors/wayland/event-handler-wl.cpp b/adaptors/wayland/event-handler-wl.cpp index 07c0909..636de86 100644 --- a/adaptors/wayland/event-handler-wl.cpp +++ b/adaptors/wayland/event-handler-wl.cpp @@ -123,7 +123,10 @@ EventHandler::EventHandler( RenderSurface* surface, CoreEventInterface& coreEven mImpl = new Impl(this ); - waylandSurface->AssignWindowEventInterface( mImpl ); + if( waylandSurface ) + { + waylandSurface->AssignWindowEventInterface( mImpl ); + } } EventHandler::~EventHandler() -- 2.7.4