Merge "Add null check on ApplicationInfo." into udc-dev

This commit is contained in:
TreeHugger Robot
2023-04-11 22:06:54 +00:00
committed by Android (Google) Code Review

View File

@@ -579,7 +579,9 @@ class ProcessRecord implements WindowProcessListener {
processName = _processName;
sdkSandboxClientAppPackage = _sdkSandboxClientAppPackage;
if (isSdkSandbox) {
sdkSandboxClientAppVolumeUuid = getClientInfoForSdkSandbox().volumeUuid;
final ApplicationInfo clientInfo = getClientInfoForSdkSandbox();
sdkSandboxClientAppVolumeUuid = clientInfo != null
? clientInfo.volumeUuid : null;
} else {
sdkSandboxClientAppVolumeUuid = null;
}