[RESTRICT AUTOMERGE] Null is a valid volume uuid.

Bug: 265477208
Fixes: 265477208
Test: atest InstallSessionParamsUnitTest
Change-Id: Ib2af1afc78b3d9c6d8eb534e5f536aae153eeeb0
(cherry picked from commit ec8328db81)
Merged-In: Ib2af1afc78b3d9c6d8eb534e5f536aae153eeeb0
This commit is contained in:
Alex Buynytskyy
2023-01-18 12:34:03 -08:00
committed by Song Chun Fan
parent 3f60b9a151
commit 3fae7a0c6a

View File

@@ -292,7 +292,7 @@ public class InstallLocationUtils {
// For new installations of a predefined size, check property to let it through // For new installations of a predefined size, check property to let it through
// regardless of the actual free space. // regardless of the actual free space.
if (bestCandidate != null && Integer.MAX_VALUE == params.sizeBytes if (!volumePaths.isEmpty() && Integer.MAX_VALUE == params.sizeBytes
&& SystemProperties.getBoolean("debug.pm.install_skip_size_check_for_maxint", && SystemProperties.getBoolean("debug.pm.install_skip_size_check_for_maxint",
false)) { false)) {
return bestCandidate; return bestCandidate;