diff options
author | Junghwan <junghwan.kang@samsung.com> | 2012-08-31 18:35:36 +0900 |
---|---|---|
committer | Junghwan <junghwan.kang@samsung.com> | 2012-09-03 11:31:55 +0900 |
commit | fe358b2047271f856bae7787e53fdbeadea82966 (patch) | |
tree | d891ed3a0e75301e7c3de19a831ba9b6b3634544 /src/browser-view/browser-view.cpp | |
parent | e26a039ca9e7f8f07c7a79362fa7dbdc1d351178 (diff) | |
download | browser-fe358b2047271f856bae7787e53fdbeadea82966.tar.gz browser-fe358b2047271f856bae7787e53fdbeadea82966.tar.bz2 browser-fe358b2047271f856bae7787e53fdbeadea82966.zip |
Fix BS issue which is occurred from using Null pointer by accident one-time scenario
[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
Diffstat (limited to 'src/browser-view/browser-view.cpp')
-rwxr-xr-x | src/browser-view/browser-view.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/browser-view/browser-view.cpp b/src/browser-view/browser-view.cpp index c42f01b2..bb6c65b3 100755 --- a/src/browser-view/browser-view.cpp +++ b/src/browser-view/browser-view.cpp @@ -1849,6 +1849,11 @@ string Browser_View::get_url(Browser_Window *window) 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); |