OSDN Git Service

Apollo: Ignore playlist when name is null.
authorKyrylo Mikos <kiril.mik.os@gmail.com>
Mon, 24 Jun 2013 18:11:49 +0000 (21:11 +0300)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Wed, 3 Jul 2013 20:06:50 +0000 (13:06 -0700)
commit6b69963068af7ab580331dfc428b636981d5ea6a
tree283914f002800bfa3f72a89202436e2a890c1f78
parent3e3d79c5fb5d69a94eb46ca85fc370e92c8084a7
Apollo: Ignore playlist when name is null.

This will avoid nex crash:

FATAL EXCEPTION: main
java.lang.IllegalArgumentException: the bind value at index 1 is null
  at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:167)
  at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
  at android.content.ContentProviderProxy.query(ContentProviderNative.java:366)
  at android.content.ContentResolver.query(ContentResolver.java:372)
  at android.content.ContentResolver.query(ContentResolver.java:315)
  at com.andrew.apollo.utils.MusicUtils.getIdForPlaylist(MusicUtils.java:669)
  at com.andrew.apollo.utils.MusicUtils.makePlaylistMenu(MusicUtils.java:1146)
  at com.andrew.apollo.ui.fragments.QueueFragment.onCreateContextMenu(QueueFragment.java:215)

Change-Id: Ib60a55f54fedf18cf900c6e492c5b4135e5c86d8
src/com/andrew/apollo/utils/MusicUtils.java