weblayer: fix possible NPE when switching tabs
ModalDialogManager.dismissDialog() may call onLastDialogDismissed() even if nothing was hidden. BrowserViewController was assuming this never happened. This matters on BrowserViewController.onLastDialogDismissed() assumed mTab was non-null. The fix is to add a null check to BrowserViewController. BUG=1121388 TEST=covered by test Change-Id: I2c806018a635d9434bf10c653b2615ea645b8e04 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382880 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by:Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#803284}
Showing
Please register or sign in to comment