Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / credentialmanager / Credential.cpp
index 6f8d8c5..08c005f 100644 (file)
@@ -35,6 +35,8 @@ Credential::Credential(const String& id, const String& name, const KURL& avatar)
 
 KURL Credential::parseStringAsURL(const String& url, ExceptionState& exceptionState)
 {
+    if (url.isEmpty())
+        return KURL();
     KURL parsedURL = KURL(KURL(), url);
     if (!parsedURL.isValid())
         exceptionState.throwDOMException(SyntaxError, "'" + url + "' is not a valid URL.");