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

Commit 2c8c86de authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Add null check for component name when fetching uid" into qt-dev am: 35d6dece

am: 99e4162d

Change-Id: If8cd019c8111f9b5c12421aee2608aee5974de95
parents 734be2cd 99e4162d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -72,6 +72,9 @@ public class MetricsLoggerWrapper {
     */
    private static int getUid(Context context, ComponentName componentName, int userId) {
        int uid = -1;
        if (componentName == null) {
            return uid;
        }
        try {
            uid = context.getPackageManager().getApplicationInfoAsUser(
                    componentName.getPackageName(), 0, userId).uid;