Commit 8eebe619 authored by Matt Simmons's avatar Matt Simmons Committed by Commit Bot

Check for null overview mode behavior in NTPLayout.initialize()

R=yusufo@chromium.org

Bug: 990979
Change-Id: Ie198810daeef73289d3ff559735a079b236a1cf0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1755415Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Matt Simmons <mattsimmons@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688162}
parent 2c921b01
......@@ -260,7 +260,7 @@ public class NewTabPageLayout extends LinearLayout implements TileGroup.Observer
if (VrModuleProvider.getDelegate().isInVr()) onEnterVr();
mOverviewModeBehavior = overviewModeBehavior;
if (overviewModeBehavior.overviewVisible()) {
if (overviewModeBehavior != null && overviewModeBehavior.overviewVisible()) {
mOverviewObserver = new EmptyOverviewModeObserver() {
@Override
public void onOverviewModeFinishedHiding() {
......
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