Merge "Fix NPE in InsertionPointCursorController.onTouchEvent"

This commit is contained in:
Nikita Dubrovsky
2020-01-14 16:00:53 +00:00
committed by Android (Google) Code Review
2 changed files with 19 additions and 1 deletions

View File

@@ -5737,7 +5737,7 @@ public class Editor {
private boolean mIsDraggingCursor;
public void onTouchEvent(MotionEvent event) {
if (getSelectionController().isCursorBeingModified()) {
if (hasSelectionController() && getSelectionController().isCursorBeingModified()) {
return;
}
switch (event.getActionMasked()) {