Merge "Fix NPE when walking the set of packages to update app link policy" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
80b60bbb5e
@@ -1072,7 +1072,9 @@ final class Settings {
|
|||||||
ArraySet<String> currentDomains = current.getIntentFilterVerificationInfo().getDomains();
|
ArraySet<String> currentDomains = current.getIntentFilterVerificationInfo().getDomains();
|
||||||
if (status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) {
|
if (status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) {
|
||||||
for (PackageSetting ps : mPackages.values()) {
|
for (PackageSetting ps : mPackages.values()) {
|
||||||
if (ps == null || ps.pkg.packageName.equals(packageName)) continue;
|
if (ps == null || ps.pkg == null || packageName.equals(ps.pkg.packageName)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
IntentFilterVerificationInfo ivi = ps.getIntentFilterVerificationInfo();
|
IntentFilterVerificationInfo ivi = ps.getIntentFilterVerificationInfo();
|
||||||
if (ivi == null) {
|
if (ivi == null) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user