summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2020-05-04 22:24:54 -0700
committerJack Pham <jackp@codeaurora.org>2020-05-15 17:05:26 +0000
commit323071b3eb568172b6e6c9666c04d66d7f2524b2 (patch)
tree2b2dd977c7a17c0929ce5353b4bc44ebe23a0592 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent04bce3c7dc32fbac6060bdbfef62628d4a96c4d9 (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_test.cpp')
0 files changed, 0 insertions, 0 deletions