commit | afa5f4609736355416667c8b0aeb0567dab1fdfb | [log] [tgz] |
---|---|---|
author | Jack Pham <jackp@quicinc.com> | Mon May 04 22:24:54 2020 -0700 |
committer | Jack Pham <jackp@codeaurora.org> | Mon May 11 20:55:53 2020 -0700 |
tree | 48971c8aab462d1ff6621bc3c8ef9f34ef05e41c | |
parent | 963c11e32d279781f4da921d0d9a6702503c58c8 [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(). Bug: 156230008 Change-Id: Ia8936358c61af5b537d1eb722a55851e0061b381