From 518bbf68d432c904f59cfa691a886cfa37759fb8 Mon Sep 17 00:00:00 2001 From: Hyun Lee Date: Tue, 26 Mar 2013 20:37:08 +0900 Subject: [PATCH] Fix for crash Change-Id: Id552bb778e76c4f5beec12649a4d1f407bd21a12 Signed-off-by: Hyun Lee --- src/controls/FWebCtrl_WebImpl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index de762e6..dd93fda 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -1252,8 +1252,13 @@ void OnWebWindowClosedRequested(void* pUserData, Evas_Object* pView, void* pEventInfo) { _WebImpl* pChildImpl = reinterpret_cast< _WebImpl* >(pUserData); + SysAssertf(pChildImpl, "Failed to request"); + _WebImpl* pParentImpl = reinterpret_cast< _WebImpl* >(evas_object_data_get(pView, PARENT_WEB_CTRL)); - SysAssertf(pChildImpl && pParentImpl, "Failed to request"); + if (pParentImpl == null) + { + return; + } if (pParentImpl->GetUiEventListener()) { -- 2.7.4