Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fafafab5 authored by Ahmad Khalil's avatar Ahmad Khalil
Browse files

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
parent a39afd3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment