Commit ea3798ed authored by Clark DuVall's avatar Clark DuVall Committed by Chromium LUCI CQ

[WebLayer] Fix crash when accessing null splitNames

This was introduced in http://crrev.com/c/2623118 but will only show up
in non-bundle builds.

Bug: 1105096
Change-Id: Iadcdae745df6a54fe1d969ada113fafb6c25bce0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2627140
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Commit-Queue: Richard Coles <torne@chromium.org>
Auto-Submit: Clark DuVall <cduvall@chromium.org>
Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#843058}
parent 94d3fb0e
...@@ -937,6 +937,10 @@ public final class WebLayerImpl extends IWebLayer.Stub { ...@@ -937,6 +937,10 @@ public final class WebLayerImpl extends IWebLayer.Stub {
PostTask.postTask(TaskTraits.BEST_EFFORT_MAY_BLOCK, () -> { PostTask.postTask(TaskTraits.BEST_EFFORT_MAY_BLOCK, () -> {
ApplicationInfo appInfo = packageInfo.applicationInfo; ApplicationInfo appInfo = packageInfo.applicationInfo;
String[] splitNames = ApiHelperForO.getSplitNames(appInfo); String[] splitNames = ApiHelperForO.getSplitNames(appInfo);
if (splitNames == null) {
return;
}
for (int i = 0; i < splitNames.length; i++) { for (int i = 0; i < splitNames.length; i++) {
String splitName = splitNames[i]; String splitName = splitNames[i];
// WebLayer depends on the "weblayer" split and "chrome" split (if running in // WebLayer depends on the "weblayer" split and "chrome" split (if running in
......
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