commit | 6553ea4976d188314ab01b81339442b68748a205 | [log] [tgz] |
---|---|---|
author | Robert Wu <robertwu@google.com> | Wed Feb 21 22:26:42 2024 +0000 |
committer | Robert Wu <robertwu@google.com> | Wed Feb 21 23:57:00 2024 +0000 |
tree | c222e3cdd58ec280f9efdc98476271c9904659e0 | |
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