Merge "Fix an issue that statsd failed to update the uid mapping when ... version name of the app is null"

This commit is contained in:
TreeHugger Robot
2019-11-04 16:34:44 +00:00
committed by Android (Google) Code Review

View File

@@ -583,7 +583,11 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
} catch (IllegalArgumentException e) {
installer = "";
}
sStatsd.informOnePackage(app, uid, pi.getLongVersionCode(), pi.versionName,
sStatsd.informOnePackage(
app,
uid,
pi.getLongVersionCode(),
pi.versionName == null ? "" : pi.versionName,
installer == null ? "" : installer);
}
} catch (Exception e) {