Fix contentInvalidateAll NPE

Bug: 5220835
 It is possible to call setProperty before webcore has initialized.
 In that case, the content invalidate is unnecessary as there is no
 content to invalidate, so just ignore the request.

Change-Id: I52471a1739443ba8f1e514a5908678552246d80b
This commit is contained in:
John Reck
2011-08-29 11:45:30 -07:00
parent 05ef04394e
commit c87b7705a0

View File

@@ -9120,7 +9120,9 @@ public class WebView extends AbsoluteLayout
/** @hide send content invalidate */
protected void contentInvalidateAll() {
mWebViewCore.sendMessage(EventHub.CONTENT_INVALIDATE_ALL);
if (mWebViewCore != null && !mBlockWebkitViewMessages) {
mWebViewCore.sendMessage(EventHub.CONTENT_INVALIDATE_ALL);
}
}
/** @hide call pageSwapCallback upon next page swap */