Skip to content
Snippets Groups Projects
Commit fade449f authored by Kweku Adams's avatar Kweku Adams Committed by Android (Google) Code Review
Browse files

Merge "Catch exception when package is unknown." into main

parents e98493dc f045351b
No related branches found
No related tags found
No related merge requests found
......@@ -314,9 +314,15 @@ public final class BackgroundJobsController extends StateController {
if (mPackageStoppedState.contains(uid, packageName)) {
return mPackageStoppedState.get(uid, packageName);
}
final boolean isStopped = mPackageManagerInternal.isPackageStopped(packageName, uid);
mPackageStoppedState.add(uid, packageName, isStopped);
return isStopped;
try {
final boolean isStopped = mPackageManagerInternal.isPackageStopped(packageName, uid);
mPackageStoppedState.add(uid, packageName, isStopped);
return isStopped;
} catch (IllegalArgumentException e) {
Slog.d(TAG, "Couldn't determine stopped state for unknown package: " + packageName);
return false;
}
}
@GuardedBy("mLock")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment