summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-12-10 18:13:11 -0500
committerLeon Scroggins <scroggo@google.com>2009-12-11 09:16:00 -0500
commit0f201b80d05708e2cbadb19333e9cdb2aedfcb62 (patch)
tree177a883de3041f20e845d4f0af6bf6a28d1ad930 /WebKit/android/nav
parent4d74841738eba71aa9b0879f8ece96334f2180b8 (diff)
downloadexternal_webkit-0f201b80d05708e2cbadb19333e9cdb2aedfcb62.zip
external_webkit-0f201b80d05708e2cbadb19333e9cdb2aedfcb62.tar.gz
external_webkit-0f201b80d05708e2cbadb19333e9cdb2aedfcb62.tar.bz2
Like other callers of Java methods, do not check for the object to be null.
Diffstat (limited to 'WebKit/android/nav')
-rw-r--r--WebKit/android/nav/WebView.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index eb0ee33..7fc14c0 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -1080,13 +1080,8 @@ void sendMoveFocus(WebCore::Frame* framePtr, WebCore::Node* nodePtr)
{
DBG_NAV_LOGD("framePtr=%p nodePtr=%p x=%d y=%d", framePtr, nodePtr, x, y);
JNIEnv* env = JSC::Bindings::getJNIEnv();
- AutoJObject obj = m_javaGlue.object(env);
- // if it is called during or after DESTROY is handled, the real object of
- // WebView can be gone. Check before using it.
- if (!obj.get())
- return;
- env->CallVoidMethod(obj.get(), m_javaGlue.m_sendMoveFocus, (jint) framePtr,
- (jint) nodePtr);
+ env->CallVoidMethod(m_javaGlue.object(env).get(),
+ m_javaGlue.m_sendMoveFocus, (jint) framePtr, (jint) nodePtr);
checkException(env);
}