Merge "Bluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord" am: 658e6530ba am: 591a68a5a1

am: 587a8acb6c

Change-Id: I88459ae16e0492ea877983252aae03ad5714a306
This commit is contained in:
Jakub Pawlowski
2018-11-29 00:39:27 -08:00
committed by android-build-merger

View File

@@ -116,6 +116,9 @@ public final class ScanRecord {
*/
@Nullable
public byte[] getManufacturerSpecificData(int manufacturerId) {
if (mManufacturerSpecificData == null) {
return null;
}
return mManufacturerSpecificData.get(manufacturerId);
}