Check UsbDevice string fields for null.
Android API allows these methods to return null, but converters from jni_string.h expect jstrings to be non-null with a DCHECK. See https://developer.android.com/reference/android/hardware/usb/UsbDevice.html > Returns ... or null if the property could not be read R=reillyg@chromium.org TEST=Don't crash in debug on null jstring DCHECK on KeyedService creation, or any other scenarios that call UsbDeviceAndroid::Create. Was reproducible only on certain devices, like Motorola Nexus 6. Review-Url: https://codereview.chromium.org/2914453002 Cr-Commit-Position: refs/heads/master@{#475841}
Showing
Please register or sign in to comment