summaryrefslogtreecommitdiffstats
path: root/webkit/api/public/WebURL.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/api/public/WebURL.h')
-rw-r--r--webkit/api/public/WebURL.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/api/public/WebURL.h b/webkit/api/public/WebURL.h
index aad9281..f23f71b 100644
--- a/webkit/api/public/WebURL.h
+++ b/webkit/api/public/WebURL.h
@@ -128,7 +128,7 @@ namespace WebKit {
operator GURL() const
{
- return GURL(m_spec.data(), m_spec.length(), m_parsed, m_isValid);
+ return isNull() ? GURL() : GURL(m_spec.data(), m_spec.length(), m_parsed, m_isValid);
}
#endif