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

Commit af4bdb23 authored by lijilou's avatar lijilou Committed by Jilou li
Browse files

Use the getName method of PackageSetting to aviod NPE problem.

The return value of getPkg method of PackageSetting is Nullable.

Test: monkey test
Flag: EXEMPT bugfix
Bug: 402612542
Change-Id: Idd4c76ece2b074d3c100f0dda6d0d306026d8641
parent ac2f2dc2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ final class DeletePackageHelper {
                    user == null || user.getIdentifier() == UserHandle.USER_ALL;
            if ((!deleteSystem || deleteAllUsers) && disabledPs == null) {
                Slog.w(TAG, "Attempt to delete unknown system package "
                        + ps.getPkg().getPackageName());
                        + ps.getName());
                return null;
            }
            // Confirmed if the system package has been updated