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

Commit 100e3f34 authored by Pinyao Ting's avatar Pinyao Ting Committed by kxxt
Browse files

Fix NPE when fetch shortcut icon uri

Bug: 296980481
Test: atest CtsShortcutManagerTestCases
Change-Id: I7a2e85c703d2758f89b0c06d898f9423d6764444
Merged-In: I7a2e85c703d2758f89b0c06d898f9423d6764444
(cherry picked from commit 879e92bb)
parent 852a3628
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3607,8 +3607,8 @@ public class ShortcutService extends IShortcutService.Stub {

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