summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-15 15:41:06 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-15 15:41:06 -0400
commit9f2088240272086cd9eb94d01b1872a1088b76f2 (patch)
treefe80c7791060aca2168758068543b91300477199 /core/java/android/webkit
parentd1a720d06f92a7228f28361a01f3a158c560cd18 (diff)
parent7f97011b550e56e7acb28462b67ac6a35991d135 (diff)
downloadframeworks_base-9f2088240272086cd9eb94d01b1872a1088b76f2.zip
frameworks_base-9f2088240272086cd9eb94d01b1872a1088b76f2.tar.gz
frameworks_base-9f2088240272086cd9eb94d01b1872a1088b76f2.tar.bz2
Merge change I7f97011b into eclair-mr2
* changes: check for native initialization before calling public function
Diffstat (limited to 'core/java/android/webkit')
-rw-r--r--core/java/android/webkit/WebView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 916d21e..9798c01 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -1721,6 +1721,7 @@ public class WebView extends AbsoluteLayout
* as the data member with "url" as key. The result can be null.
*/
public void requestImageRef(Message msg) {
+ if (0 == mNativeClass) return; // client isn't initialized
int contentX = viewToContentX((int) mLastTouchX + mScrollX);
int contentY = viewToContentY((int) mLastTouchY + mScrollY);
String ref = nativeImageURI(contentX, contentY);
@@ -2339,6 +2340,7 @@ public class WebView extends AbsoluteLayout
* @param forward Direction to search.
*/
public void findNext(boolean forward) {
+ if (0 == mNativeClass) return; // client isn't initialized
nativeFindNext(forward);
}
@@ -2349,6 +2351,7 @@ public class WebView extends AbsoluteLayout
* that were found.
*/
public int findAll(String find) {
+ if (0 == mNativeClass) return 0; // client isn't initialized
if (mFindIsUp == false) {
recordNewContentSize(mContentWidth, mContentHeight + mFindHeight,
false);
@@ -3477,6 +3480,7 @@ public class WebView extends AbsoluteLayout
* @hide
*/
public void emulateShiftHeld() {
+ if (0 == mNativeClass) return; // client isn't initialized
mExtendSelection = false;
mShiftIsPressed = true;
nativeHideCursor();