Checking the ewkView value before open clipboard window
authorTaeyun An <ty.an@samsung.com>
Thu, 4 Apr 2013 13:52:11 +0000 (22:52 +0900)
committerTaeyun An <ty.an@samsung.com>
Thu, 4 Apr 2013 16:54:02 +0000 (01:54 +0900)
[Title] Checking the ewkView value before open clipboard window
[Issue#] PLM-P130404-4374
[Problem] Crash occured when open the clipboard window from IME button.
[Cause] Open clipboard window signal callback from IME is registed at EFL, OSP side also, So sometimes ewkView pointer has null value.
[Solution] Checking the ewkView value before open clipboard window. If ewkView value is null then it should be early return before open clipboard window.

Change-Id: Ibff6a2ab3b8c0c0e26fa034cefa54bd59ba69f79

Source/WebKit2/UIProcess/API/efl/tizen/ClipboardHelper.cpp

index 2407dcf..f649f65 100755 (executable)
@@ -553,7 +553,14 @@ bool ClipboardHelper::sendCbhmMessage(String message)
     Ecore_X_Window xCbhmWin = getCbhmWindow();
     Ecore_X_Atom xAtomCbhmMsg = ecore_x_atom_get("CBHM_MSG");
 
+    if (!m_viewImpl->view())
+        return false;
+
     Evas_Object* parent = elm_object_parent_widget_get(m_viewImpl->view());
+
+    if (!parent)
+        return false;
+
     Ecore_X_Window xWin = ecore_evas_gl_x11_window_get(ecore_evas_ecore_evas_get(evas_object_evas_get(parent)));
     if (!xWin)
         xWin = ecore_evas_software_x11_window_get(ecore_evas_ecore_evas_get(evas_object_evas_get(parent)));