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

Commit 65abebba authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when reading icon for removed session." into oc-dr1-dev

parents ae938cee d1dd2c66
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1360,8 +1360,9 @@ public class PackageInstaller {
                // Icon may have been omitted for calls that return bulk session
                // lists, so try fetching the specific icon.
                try {
                    appIcon = AppGlobals.getPackageManager().getPackageInstaller()
                            .getSessionInfo(sessionId).appIcon;
                    final SessionInfo info = AppGlobals.getPackageManager().getPackageInstaller()
                            .getSessionInfo(sessionId);
                    appIcon = (info != null) ? info.appIcon : null;
                } catch (RemoteException e) {
                    throw e.rethrowFromSystemServer();
                }