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)
committerGrace Kloba <klobag@google.com>
Sun, 27 Sep 2009 23:37:17 +0000 (16:37 -0700)
commit992afbebfb735ec2dd52b4166c22ab55827d88ed
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