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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user