commit | 0ca95700b170997abd03645e751f9679139fec24 | [log] [tgz] |
---|---|---|
author | Gilles Debunne <debunne@google.com> | Mon Feb 27 15:30:37 2012 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Feb 27 15:30:37 2012 -0800 |
tree | 39158a189a05879dc8c79b866e2ebcc7d69e4c3f | |
parent | f94c04abaf7c26b1f6ef440a7b0283f283faf4f8 [diff] | |
parent | 7e07adbcd3bc7e7bb4b32b620a8f96ee97fd4aae [diff] |
Merge "Fix for NPE on long press to start a selection on text."
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 15d0f54..b126625 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java
@@ -8222,7 +8222,7 @@ } // Start a new selection - if (!handled) { + if (!handled && mEditor != null) { vibrate = handled = startSelectionActionMode(); }