diff options
author | Jack Pham <jackp@codeaurora.org> | 2020-05-04 22:24:54 -0700 |
---|---|---|
committer | Jack Pham <jackp@codeaurora.org> | 2020-05-15 17:05:26 +0000 |
commit | 323071b3eb568172b6e6c9666c04d66d7f2524b2 (patch) | |
tree | 2b2dd977c7a17c0929ce5353b4bc44ebe23a0592 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 04bce3c7dc32fbac6060bdbfef62628d4a96c4d9 (diff) |
Fix null pointer exception if USBPort is removed
If for some reason a USB port instance is removed, UsbPortManager
handles this by broadcasting a UsbManager.ACTION_USB_PORT_CHANGED
intent with null as the UsbPortStatus argument, leading to a null
pointer exception after UsbDeviceManager receives it. Take care of
this by checking for null in UsbHandler.updateHostState().
CRs-Fixed: 2674528
Bug: 156230008
Change-Id: Ia8936358c61af5b537d1eb722a55851e0061b381
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions