Commit 587a06cd authored by Matt Simmons's avatar Matt Simmons Committed by Commit Bot

Add a null check before attempting to record tab switch metric.

R=yusufo@chromium.org

Bug: 988095
Change-Id: Ie94e97fc7016f57ac212e402e29c07a208dfee74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1722985Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Matt Simmons <mattsimmons@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681932}
parent d5c233a2
......@@ -309,6 +309,8 @@ class GridTabSwitcherMediator implements GridTabSwitcher.GridController,
* in TabModel.
*/
private void recordUserSwitchedTab(Tab tab, int lastId) {
if (tab == null) return;
Tab fromTab = TabModelUtils.getTabById(mTabModelSelector.getCurrentModel(), lastId);
assert fromTab != null;
......
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