diff options
| author | 2024-02-21 22:26:42 +0000 | |
|---|---|---|
| committer | 2024-02-21 23:57:00 +0000 | |
| commit | 6553ea4976d188314ab01b81339442b68748a205 (patch) | |
| tree | c222e3cdd58ec280f9efdc98476271c9904659e0 /libs/input/PointerController.cpp | |
| parent | 0edd84716a9090da9a35837353ccb7344d5b8608 (diff) | |
MIDI: Add null check for UserManager.getMainUser
UserManager.getMainUser() can return null for some devices.
This is causing a NullPointerException in some automotive cases.
This CL adds an additional check to make sure that this is not null.
Bug: 322622902
Test: Connect to jamstick on phone with MIDI+BTLE app.
Test: Verify that MidiScope receives packets successfully.
Change-Id: I5b8e060cd8cafde1b1c60e259cc5ba0516a417d0
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions