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

Commit 69ae2cc3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE happened in the constructor of SystemMediaRoute2Provider"

parents 042ebb1d 0e809640
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -214,6 +214,8 @@ class SystemMediaRoute2Provider extends MediaRoute2Provider {
     * Updates the mSessionInfo. Returns true if the session info is changed.
     */
    boolean updateSessionInfosIfNeededLocked() {
        // Prevent to execute this method before mBtRouteProvider is created.
        if (mBtRouteProvider == null) return false;
        RoutingSessionInfo oldSessionInfo = mSessionInfos.isEmpty() ? null : mSessionInfos.get(0);

        RoutingSessionInfo.Builder builder = new RoutingSessionInfo.Builder(