commit | 323071b3eb568172b6e6c9666c04d66d7f2524b2 | [log] [tgz] |
---|---|---|
author | Jack Pham <jackp@codeaurora.org> | Mon May 04 22:24:54 2020 -0700 |
committer | Jack Pham <jackp@codeaurora.org> | Fri May 15 17:05:26 2020 +0000 |
tree | 2b2dd977c7a17c0929ce5353b4bc44ebe23a0592 | |
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