DescriptionCheck 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}
Committed: https://chromium.googlesource.com/chromium/src/+/eed4be16b9d9e00cfb5708277c78969d9c652810
Patch Set 1 #
Total comments: 3
Patch Set 2 : Use ScopedJavaLocalRef as a local var type. #Messages
Total messages: 10 (3 generated)
|