Fix NPE in MediaController's constructor
MediaController tries to release itself when the binder to the session becomes unavailable. However, if such thing happens while connecting in the constructor, it causes NPE when accessing MediaControllerImpl which is only initialized after it's connected. This fixes random failures in existing tests. PiperOrigin-RevId: 421423381
Showing
with
26 additions
and
5 deletions
Please
register
or
sign in
to comment