Jaewan Kim b10e372284 MediaSession2: Fix random NPE in MediaBrowser2Test
MediaSessionService#getSession() may be null until the
MediaSessionService#onCreate(), and its session callback can be called
before that. (e.g. System service can try connecting to the session
in another thread)

Don't use MediaSessionService#getSession() when it's unclear whether
the MediaSessionService#onCreate() is finished.

Bug: 74177171
Test: Run MediaComponents test 10 times
Change-Id: I89f3d1a59f84f5d950a14a7b412cfbbdad2c8bee
2018-03-06 19:48:32 +09:00
2018-03-02 22:05:45 +00:00
2018-03-02 11:46:59 -08:00
2018-02-28 19:06:48 -08:00
2018-02-28 19:06:48 -08:00
2018-02-27 16:43:50 +08:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%