Merge "Fixed null pointer exception on mSupportedAreas." into qt-dev am: 9bde289191
am: e6958a547f

Change-Id: Iee2e767c0da3e693b50671f02adf42f887c48ad6
diff --git a/car-lib/src/android/car/hardware/CarPropertyConfig.java b/car-lib/src/android/car/hardware/CarPropertyConfig.java
index e271fd5..87c4b46 100644
--- a/car-lib/src/android/car/hardware/CarPropertyConfig.java
+++ b/car-lib/src/android/car/hardware/CarPropertyConfig.java
@@ -308,7 +308,7 @@
      */
     @Nullable
     public T getMinValue() {
-        AreaConfig<T> area = mSupportedAreas.valueAt(0);
+        AreaConfig<T> area = mSupportedAreas.get(0);
         return area == null ? null : area.getMinValue();
     }
 
@@ -318,7 +318,7 @@
      */
     @Nullable
     public T getMaxValue() {
-        AreaConfig<T> area = mSupportedAreas.valueAt(0);
+        AreaConfig<T> area = mSupportedAreas.get(0);
         return area == null ? null : area.getMaxValue();
     }