Skip to content

Commit 6eff6f8

Browse files
author
Alex Mineer
committed
Check if asyncparams is null for document mode UI initialization
The if statement checks for the tabtobereparented to be null without checking the params itself. BUG=590637 Review URL: https://codereview.chromium.org/1746933002 (cherry picked from commit 12b7f87) Cr-Original-Commit-Position: refs/heads/master@{#378249} Cr-Commit-Position: refs/branch-heads/2661@{#4} Cr-Branched-From: ef6f6ae-refs/heads/master@{#378081}
1 parent 958bba9 commit 6eff6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ private void initializeUI() {
578578
boolean isCreatedWithWebContents = asyncParams != null
579579
&& asyncParams.getWebContents() != null;
580580

581-
if (params.getTabToReparent() != null) {
581+
if (params != null && params.getTabToReparent() != null) {
582582
mTab = params.getTabToReparent();
583583
mTab.reparentToActivity(this, new DocumentTabDelegateFactory());
584584
} else {

0 commit comments

Comments
 (0)