OSDN Git Service

Fix null pointer exception if song has neither artist nor album information.
authorAndreas Huber <andih@google.com>
Mon, 13 Apr 2009 23:15:57 +0000 (16:15 -0700)
committerAndreas Huber <andih@google.com>
Mon, 13 Apr 2009 23:32:06 +0000 (16:32 -0700)
commitc839849c33a6c27d247a256799c505c316a738a0
tree59dfaefd5023c1c5e44f159d33782567a0d6ea41
parent25078dab32659e384ee6607b476b5a3a96b3798a
Fix null pointer exception if song has neither artist nor album information.

For songs that we couldn't determine any information on artist and album for we used
to crash with a null pointer exception, since in this particular case (audio file
attachment received via email and opened using music app, not even song title
information was available we would have ended up showing a popup
"Search for null/'' using ..." which I consider unhelpful and futile enough
to just disable this case altogether.

(bug 1785479)
src/com/android/music/MediaPlaybackActivity.java