Skip to content

Commit 0ca9570

Browse files
Gilles DebunneAndroid (Google) Code Review
authored andcommitted
Merge "Fix for NPE on long press to start a selection on text."
2 parents f94c04a + 7e07adb commit 0ca9570

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)