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

Commit d9792ac7 authored by Jason Simmons's avatar Jason Simmons
Browse files

Add a null check to handle failure of android::createPlayer

Change-Id: Id56bd0c16104e46d8dc71f13d8a44aefe251fad4
parent e1fec240
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -687,7 +687,9 @@ sp<MediaPlayerBase> MediaPlayerService::Client::createPlayer(player_type playerT
        p = android::createPlayer(playerType, this, notify);
    }

    if (p != NULL) {
        p->setUID(mUID);
    }

    return p;
}