Add null check on ApplicationInfo.

Bug: 277187196
Test: tree hugger.
Change-Id: Ic208abb442535d01c946ce7f49022483f126279c
This commit is contained in:
Hui Yu
2023-04-11 18:43:52 +00:00
parent 9d1c928132
commit 50a46aaadd

View File

@@ -577,7 +577,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;
}