Check for a null url before trying to load it.

There are some bad things that happen if WebCore gets a blank url.
This commit is contained in:
Patrick Scott
2009-07-15 15:41:05 -04:00
parent 0c421c0d27
commit 4c3ca701fe

View File

@@ -1235,6 +1235,9 @@ public class WebView extends AbsoluteLayout
* @param url The url of the resource to load.
*/
public void loadUrl(String url) {
if (url == null) {
return;
}
switchOutDrawHistory();
mWebViewCore.sendMessage(EventHub.LOAD_URL, url);
clearTextEntry();