Merge "skip load refresh rate profile if null" into udc-d1-dev

This commit is contained in:
Peter Lin
2023-08-18 08:52:45 +00:00
committed by Android (Google) Code Review

View File

@@ -2056,7 +2056,7 @@ public class DisplayDeviceConfig {
/** Loads the refresh rate profiles. */ /** Loads the refresh rate profiles. */
private void loadRefreshRateZoneProfiles(RefreshRateConfigs refreshRateConfigs) { private void loadRefreshRateZoneProfiles(RefreshRateConfigs refreshRateConfigs) {
if (refreshRateConfigs == null) { if (refreshRateConfigs == null || refreshRateConfigs.getRefreshRateZoneProfiles() == null) {
return; return;
} }
for (RefreshRateZone zone : for (RefreshRateZone zone :