Skip to content

Commit 12b7f87

Browse files
yusufoCommit bot
authored andcommitted
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 Cr-Commit-Position: refs/heads/master@{#378249}
1 parent 9b60189 commit 12b7f87

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)