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

Commit 06910a88 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing NullPointer Exception when user is deleted.

Bug: 18388507
Change-Id: I4176ea37a019c2a862e6b2875cc6b03ec9118571
parent e0f58d73
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -388,6 +388,9 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
                // The is an internal launcher target shortcut.
                UserHandleCompat user = UserManagerCompat.getInstance(context)
                        .getUserForSerialNumber(object.getLong(USER_HANDLE_KEY));
                if (user == null) {
                    return null;
                }

                LauncherActivityInfoCompat info = LauncherAppsCompat.getInstance(context)
                        .resolveActivity(launcherIntent, user);