summaryrefslogtreecommitdiff
path: root/src/browser-view/browser-view.cpp
diff options
context:
space:
mode:
authorJunghwan <junghwan.kang@samsung.com>2012-08-31 18:35:36 +0900
committerJunghwan <junghwan.kang@samsung.com>2012-09-03 11:31:55 +0900
commitfe358b2047271f856bae7787e53fdbeadea82966 (patch)
treed891ed3a0e75301e7c3de19a831ba9b6b3634544 /src/browser-view/browser-view.cpp
parente26a039ca9e7f8f07c7a79362fa7dbdc1d351178 (diff)
downloadbrowser-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-xsrc/browser-view/browser-view.cpp5
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);