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

Commit 1f68c7c8 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android Git Automerger
Browse files

am 06910a88: Fixing NullPointer Exception when user is deleted.

* commit '06910a88':
  Fixing NullPointer Exception when user is deleted.
parents a15f8910 06910a88
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);