[Title] Fix BS issue which is occurred from using Null pointer by accident one-time scenario
[Issue#] S1-7978
[Problem] BS happens
[Cause] Null pointer is used in very rare time of launching browser
[Solution] Make it to avoid to use NULL pointer
[Team] Browser UI
[Developer] Junghwan Kang
[Request] N/A
Change-Id: Ic91bd6ecb0f54e743aafc6f10a742aa50fbb1e8a
string Browser_View::get_url(void)
{
+ if (!m_focused_window) {
+ BROWSER_LOGE("m_focused_window is NULL");
+ return std::string();
+ }
+
const char *uri = ewk_view_uri_get(m_focused_window->m_ewk_view);
BROWSER_LOGD("uri = [%s]", uri);