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

Commit 068b5f42 authored by Danesh M's avatar Danesh M
Browse files

AudioService : Ensure uri is not null

Checks to make sure the uri is not null, otherwise the entire
subsystem crashes.

Change-Id: Iac04b6d11335236d527b8d5a1ccb48c1e09a4ac2
parent 05a51ca8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3742,6 +3742,9 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
        @Override
        public void onChange(boolean selfChange, Uri uri) {
            super.onChange(selfChange, uri);
            if (uri == null) {
                return;
            }
            // FIXME This synchronized is not necessary if mSettingsLock only protects mRingerMode.
            //       However there appear to be some missing locks around mRingerModeMutedStreams
            //       and mRingerModeAffectedStreams, so will leave this synchronized for now.