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

Commit 7b3cae36 authored by Jaewan Kim's avatar Jaewan Kim
Browse files

MediaSessionService: Fix NPE

Bug: 109766690
Test: Run CtsMediaTests
Change-Id: Id94bc1a4c46a28f920b10e39c0ada7ad6a90fc01
parent 39f04a7d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -781,6 +781,9 @@ public class MediaSessionService extends SystemService implements Monitor {
    }

    private void dispatchVolumeKeyLongPressLocked(KeyEvent keyEvent) {
        if (mCurrentFullUserRecord.mOnVolumeKeyLongPressListener == null) {
            return;
        }
        try {
            mCurrentFullUserRecord.mOnVolumeKeyLongPressListener.onVolumeKeyLongPress(keyEvent);
        } catch (RemoteException e) {