diff options
| author | 2025-02-13 12:15:19 -0800 | |
|---|---|---|
| committer | 2025-02-13 12:15:19 -0800 | |
| commit | 12e6669c260c5fbf2fff23976d57a05188da864b (patch) | |
| tree | e3cf2400cbb4667a206faaba103a5dbe8c0ac5d1 | |
| parent | 10d770d4df6daf44cc3cee9ec2a97ad51cec3dd0 (diff) | |
| parent | 99876afd66a79bb80eec49e954edec56779db5a2 (diff) | |
Merge "Return an empty SensorProps array instead of null in" into main
| -rw-r--r-- | core/java/android/hardware/fingerprint/FingerprintSensorConfigurations.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/hardware/fingerprint/FingerprintSensorConfigurations.java b/core/java/android/hardware/fingerprint/FingerprintSensorConfigurations.java index 48c5887d80d0..586830c8d189 100644 --- a/core/java/android/hardware/fingerprint/FingerprintSensorConfigurations.java +++ b/core/java/android/hardware/fingerprint/FingerprintSensorConfigurations.java @@ -224,6 +224,10 @@ public class FingerprintSensorConfigurations implements Parcelable { } catch (RemoteException e) { Log.d(TAG, "Unable to get sensor properties!"); } + + if (props == null) { + props = new SensorProps[]{}; + } return props; } } |