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

Commit ea068bf3 authored by Ziyang Cheng's avatar Ziyang Cheng
Browse files

Add vendor UUID not null check in GenericSoundModel.

Bug: 339267254
Flag: NONE bugfix
Test: Build image for Pixel Watch devices.
Change-Id: I93ac96483fbc415264ae42b1351fd3fe0e01b90e
parent f6365408
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -892,7 +892,8 @@ public class SoundTrigger {

        public GenericSoundModel(@NonNull UUID uuid, @NonNull UUID vendorUuid,
                @Nullable byte[] data, int version) {
            super(uuid, vendorUuid, TYPE_GENERIC_SOUND, data, version);
            super(uuid, Objects.requireNonNull(vendorUuid, "vendorUuid cannot be null"),
                    TYPE_GENERIC_SOUND, data, version);
        }

        @UnsupportedAppUsage