Merge "Check if ParsedMainComponent is null before dereferencing" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-12-06 01:38:48 +00:00
committed by Android (Google) Code Review

View File

@@ -1129,7 +1129,7 @@ public class PackageManagerServiceUtils {
throw new IllegalArgumentException("Unsupported component type");
}
if (comp.getIntents().isEmpty()) {
if (comp == null || comp.getIntents().isEmpty()) {
continue;
}