Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TabletGTS] Fix startup NPE crash when attempting to show GTS
Fix startup NPE crash when attempting to show GTS. -Crash occurs because mLayoutManager is null when we call isLayoutVisible(). This occurs on startup because we register the listener, a new tab is created because there are no open tabs, the creation of the first new tab triggers onTabModelSelected, then the NPE occurs. -Speculative fix is to add null check. (cherry picked from commit 3106964) Bug: 1329651 Change-Id: Iab1f1caa7d0f928038efdf92e409860cb8d27b64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3668919 Commit-Queue: Neil Coronado <nemco@google.com> Reviewed-by: Theresa Sullivan <twellington@chromium.org> Reviewed-by: Sirisha Kavuluru <skavuluru@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1009205} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3687360 Commit-Queue: Theresa Sullivan <twellington@chromium.org> Auto-Submit: Neil Coronado <nemco@google.com> Cr-Commit-Position: refs/branch-heads/5060@{#499} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information