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

Commit 10279a29 authored by android-build-prod (mdb)'s avatar android-build-prod (mdb) Committed by Gerrit Code Review
Browse files

Merge "MediaPlayerList: Prevent NPE in wrapper.cleanup()"

parents b6984739 b6e5c809
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -447,11 +447,11 @@ public class MediaPlayerList {
            mActivePlayerId = NO_ACTIVE_PLAYER;
        }

        MediaPlayerWrapper wrapper = mMediaPlayers.get(playerId);
        final MediaPlayerWrapper wrapper = mMediaPlayers.get(playerId);
        d("Removing media player " + wrapper.getPackageName());
        mMediaPlayerIds.remove(wrapper.getPackageName());
        mMediaPlayers.remove(playerId);
        mMediaPlayers.get(playerId).cleanup();
        wrapper.cleanup();
    }

    void setActivePlayer(int playerId) {