Skip to content

Commit

Permalink
[RSearches] Check if mControlView is null
Browse files Browse the repository at this point in the history
Bug:1330101

(cherry picked from commit cf05c0c)

Change-Id: If97e3b7804f6970a9f2a807ba0b6a7f46728af2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3680280
Reviewed-by: Donn Denman <donnd@chromium.org>
Commit-Queue: Gang Wu <gangwu@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1009162}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3687221
Auto-Submit: Gang Wu <gangwu@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Donn Denman <donnd@chromium.org>
Cr-Commit-Position: refs/branch-heads/5060@{#495}
Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
  • Loading branch information
Gang Wu authored and Chromium LUCI CQ committed Jun 2, 2022
1 parent 4abb5f9 commit 5943cbb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ public void updateChips() {
}

private void handleChipTapped(PropertyModel tappedChip) {
if (mControlView == null) return;

onSuggestionClicked(tappedChip.get(ChipProperties.ID));
if (mSelectedChip != NO_SELECTED_CHIP) {
mChips.get(mSelectedChip).model.set(ChipProperties.SELECTED, false);
Expand Down

0 comments on commit 5943cbb

Please sign in to comment.