Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb735496 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Bluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord

Bug: 118805852
Test: compilation
Change-Id: I537bec61cd3e7df700cc972683458f977ff370b8
parent e18ad109
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -116,6 +116,9 @@ public final class ScanRecord {
     */
    @Nullable
    public byte[] getManufacturerSpecificData(int manufacturerId) {
        if (mManufacturerSpecificData == null) {
            return null;
        }
        return mManufacturerSpecificData.get(manufacturerId);
    }