summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Ahmad Khalil <khalilahmad@google.com> 2025-01-08 12:57:31 +0000
committer Ahmad Khalil <khalilahmad@google.com> 2025-01-08 13:04:55 +0000
commitfafafab5b20bad45399f035de3f2411a214727a1 (patch)
treec48cedf8cadfa59000dbdba038eaab7dd873c1a4 /libs/androidfw/AttributeResolution.cpp
parenta39afd3f941b6b8aed971a0367e740b7840cc4ff (diff)
Fix NullPointerException in BasicToPwleSegmentAdapter
We're updating the BasicToPwleSegmentAdapter to check if the FrequencyProfile is empty (has no valid frequency range) before attempting to adapt the segment. Without that there is a possibility of a NullPointerException. If the FrequencyProfile is empty, then we return the segments unchanged. Bug: 388239434 Flag: android.os.vibrator.normalized_pwle_effects Test: atest BasicToPwleSegmentAdapterTest Change-Id: Ic519b1e7bf2c1319bb17fa6412e2091aa2bd1353
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions