Merge "Fix NPE in AppExitInfo statsd logging" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a5d90cd21a
@@ -879,7 +879,7 @@ public final class AppExitInfoTracker {
|
|||||||
if (TextUtils.equals(pkgName, processName)) {
|
if (TextUtils.equals(pkgName, processName)) {
|
||||||
// Omit the process name here to save space
|
// Omit the process name here to save space
|
||||||
processName = null;
|
processName = null;
|
||||||
} else if (processName != null && processName.startsWith(pkgName)) {
|
} else if (processName != null && pkgName != null && processName.startsWith(pkgName)) {
|
||||||
// Strip the prefix to save space
|
// Strip the prefix to save space
|
||||||
processName = processName.substring(pkgName.length());
|
processName = processName.substring(pkgName.length());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user