In clearView(), see if native exists before calling it.

Change-Id: I069678ef8f4dbdb6b62109c53b352127f5eec7cf
http://b/2999966
This commit is contained in:
Cary Clark
2010-09-21 10:10:29 -04:00
parent 4200dcaa7b
commit a3bec150bf

View File

@@ -1941,7 +1941,7 @@ public class WebView extends AbsoluteLayout
public void clearView() {
mContentWidth = 0;
mContentHeight = 0;
nativeSetBaseLayer(0);
if (mNativeClass != 0) nativeSetBaseLayer(0);
mWebViewCore.sendMessage(EventHub.CLEAR_CONTENT);
}