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

Commit 623fbea9 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

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

am: 65abebba

Change-Id: I6ef312422ea84b352f8d07a9937c64394b14776a
parents 64dd913f 65abebba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1406,8 +1406,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();
                }