OSDN Git Service

Check null for WebViewCore's nativeClass before calling
authorGrace Kloba <klobag@google.com>
Sun, 27 Sep 2009 23:03:59 +0000 (16:03 -0700)
committerandroid-build SharedAccount <android-build@sekiwake.mtv.corp.google.com>
Mon, 28 Sep 2009 00:36:47 +0000 (17:36 -0700)
commit38173c0bcc86a90774a71224e2702ab923e2a99e
treecb60c16772fee7855dd5f6064a9a9e832ed323f4
parent5ca6cb36d22a6a75bc18215b53ebc58d39ae4dd8
Check null for WebViewCore's nativeClass before calling
back to Java. This may happen if WebKit holds some reference
of the Document even when our Java side has been destroyed.
So when Document finally is deleted, the call back to Java
will have null nativeClass.

In the long run, we may need to add the check for all the
callback to Java.

Fix http://b/issue?id=2148023
WebKit/android/jni/WebViewCore.cpp