Skip to content

Commit 7e07adb

Browse files
author
Gilles Debunne
committed
Fix for NPE on long press to start a selection on text.
Bug 6075849 Change-Id: Ie07bd2adfecc0820995b9c8a75cd4de6dd9891e1
1 parent 35ae6e2 commit 7e07adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/widget/TextView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8222,7 +8222,7 @@ public boolean performLongClick() {
82228222
}
82238223

82248224
// Start a new selection
8225-
if (!handled) {
8225+
if (!handled && mEditor != null) {
82268226
vibrate = handled = startSelectionActionMode();
82278227
}
82288228

0 commit comments

Comments
 (0)