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

Commit 879e92bb authored by Pinyao Ting's avatar Pinyao Ting
Browse files

Fix NPE when fetch shortcut icon uri

Bug: 296980481
Test: atest CtsShortcutManagerTestCases
Change-Id: I7a2e85c703d2758f89b0c06d898f9423d6764444
parent a0752490
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3611,8 +3611,8 @@ public class ShortcutService extends IShortcutService.Stub {


            // Otherwise check persisted shortcuts
            // Otherwise check persisted shortcuts
            getShortcutInfoAsync(launcherUserId, packageName, shortcutId, userId, si -> {
            getShortcutInfoAsync(launcherUserId, packageName, shortcutId, userId, si -> {
                cb.complete(getShortcutIconUriInternal(launcherUserId, launcherPackage,
                cb.complete(si == null ? null : getShortcutIconUriInternal(launcherUserId,
                        packageName, si, userId));
                        launcherPackage, packageName, si, userId));
            });
            });
        }
        }