Fix crash issue on moving by history
authorSangYong Park <sy302.park@samsung.com>
Tue, 4 Jun 2013 03:53:49 +0000 (12:53 +0900)
committerSangYong Park <sy302.park@samsung.com>
Tue, 4 Jun 2013 03:53:49 +0000 (12:53 +0900)
[Title] Fix crash issue on moving by history
[Issue#] N_SE-40314 N_SE-39978
[Problem] Crash was occured when move by history
[Cause] Pass null pointer to shouldDoSAmDocumentNavigationTo()
[Solution] Check null pointer

Change-Id: I8b470fbe606e591d214a89ac031a1804b00db0a2

Source/WebCore/loader/HistoryController.cpp

index e3847b8..4ed473c 100755 (executable)
@@ -292,7 +292,7 @@ void HistoryController::goToItem(HistoryItem* targetItem, FrameLoadType type)
     recursiveGoToItem(targetItem, currentItem.get(), type);
 
 #if ENABLE(TIZEN_ISF_PORT)
-    if (page->mainFrame() == m_frame && !targetItem->shouldDoSameDocumentNavigationTo(currentItem.get()))
+    if (currentItem && page->mainFrame() == m_frame && !targetItem->shouldDoSameDocumentNavigationTo(currentItem.get()))
         page->editorClient()->setInputMethodState(page->focusController()->focusedOrMainFrame()->document()->focusedNode());
 #endif
 }