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

Commit 1ab9c0cd 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

am: eb6733e9

Change-Id: I4bb82ed141cf10d74c5e6d0c08346cd6aeb73931
parents caab6893 eb6733e9
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();
                }