Commit f515828d authored by Yu Su's avatar Yu Su Committed by Chromium LUCI CQ

Fix NullPointerException at LensChipDelegate#onMenuClosed

Change-Id: I4c5fdbd3648e088353db5491084c3247b0f40968
Bug: 1155490
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2574478Reviewed-by: default avatarBen Goldberger <benwgold@google.com>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Reviewed-by: default avatarSinan Sahin <sinansahin@google.com>
Commit-Queue: Yu Su <yusuyoutube@google.com>
Cr-Commit-Position: refs/heads/master@{#833760}
parent e048b58b
......@@ -184,7 +184,7 @@ public class ContextMenuHelper {
mCurrentPopulator.onMenuClosed();
mCurrentPopulator = null;
}
if (LensUtils.enableImageChip(mIsIncognito)) {
if (mChipDelegate != null) {
// If the image was being classified terminate the classification
// Has no effect if the classification already succeeded.
mChipDelegate.onMenuClosed();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment