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

Commit 3fbe9fef authored by Eden Mendel's avatar Eden Mendel
Browse files

AI-generated suggestion for a Null Pointer Exception.

Bug: 433865328

Flag: EXEMPT bugfix

Provide Feedback: Help us improve by voting and commenting on the CL.
Report bugs or provide feedback: go/ai-npe-fixer-feedback

AI reasoning:
- The upstream fix filters out any null `SensorPropertiesInternal` objects from the list returned by `BiometricService.getSensorProperties()`. This prevents nulls from propagating up the call stack.
- The midstream fix adds a null check in `BiometricService.getSensorProperties()` to ensure that null `SensorPropertiesInternal` objects are not added to the list that is returned to the caller.
- The downstream fix adds a null check in `SensorPropertiesInternal.from()` to prevent the NPE. It also changes the annotation of the `prop` parameter and the return type to `@Nullable` to reflect the possibility of null values.

Change-Id: Id48d71d9f93cb1fa3960e83662e4ff2766cd155d
parent 1d360925
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