[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
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
}