You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.hardware.usb.UsbAccessory.getManufacturer()' on a null object reference at com.smartdevicelink.transport.USBTransport.isAccessorySupported(USBTransport.java:534)
Reproduction Steps
Start USBAccessoryAttachmentActivity
Call method wakeUpRouterService(), there should be only legacy connection possible
Immediately finish the USBAccessoryAttachmentActivity
Expected Behavior
Broadcast is not sent with usbAccessory == null
Observed Behavior
When USBAccessoryAttachmentActivity is destroyed before the broadcast is sent, usbAccessory is set to null in onDestroy and then is sent in the broadcast.
OS & Version Information
Android Version: 8.1
SDL Android Version: 4.8.0
The text was updated successfully, but these errors were encountered:
Bug Report
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.hardware.usb.UsbAccessory.getManufacturer()' on a null object reference at com.smartdevicelink.transport.USBTransport.isAccessorySupported(USBTransport.java:534)
Reproduction Steps
USBAccessoryAttachmentActivity
wakeUpRouterService()
, there should be only legacy connection possibleUSBAccessoryAttachmentActivity
Expected Behavior
Broadcast is not sent with
usbAccessory == null
Observed Behavior
When
USBAccessoryAttachmentActivity
is destroyed before the broadcast is sent,usbAccessory
is set tonull
inonDestroy
and then is sent in the broadcast.OS & Version Information
The text was updated successfully, but these errors were encountered: