Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c96f8fb0 authored by Yanting Yang's avatar Yanting Yang Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE of ApplicationsState" into udc-dev

parents 99df8fc9 3d851e04
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -483,7 +483,10 @@ public class ApplicationsState {
    public AppEntry getEntry(String packageName, int userId) {
        if (DEBUG_LOCKING) Log.v(TAG, "getEntry about to acquire lock...");
        synchronized (mEntriesMap) {
            AppEntry entry = mEntriesMap.get(userId).get(packageName);
            AppEntry entry = null;
            if (mEntriesMap.contains(userId)) {
                entry = mEntriesMap.get(userId).get(packageName);
            }
            if (entry == null) {
                ApplicationInfo info = getAppInfoLocked(packageName, userId);
                if (info == null) {