summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Leon Scroggins <scroggo@google.com> 2010-11-11 11:41:07 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-11-11 11:41:07 -0800
commit8b83d25222a59a958b702cac03292332befeef50 (patch)
treea3c765a94bcc73f0c8d75d26a7141af96fd6d52a
parent54019ee8c582bc0871d4d3395d690dfd35a8e08b (diff)
parentef7af2897530f556e2353a35a00da2fcd1666639 (diff)
Merge "Ensure that text passed in is non-null."
-rw-r--r--core/java/android/webkit/WebView.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index fb760ac708d8..f3f9a6d95ba6 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -6529,8 +6529,11 @@ public class WebView extends AbsoluteLayout
// If the text entry has created more events, ignore
// this one.
} else if (msg.arg2 == mTextGeneration) {
- mWebTextView.setTextAndKeepSelection(
- (String) msg.obj);
+ String text = (String) msg.obj;
+ if (null == text) {
+ text = "";
+ }
+ mWebTextView.setTextAndKeepSelection(text);
}
}
break;