MusicUtils: ensure query parameters are not null
-----
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: FATAL EXCEPTION: main
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: Process: com.shiftos.eleven, PID: 6631
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: java.lang.IllegalArgumentException: the bind value at index 1 is null
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.content.ContentProviderProxy.query(ContentProviderNative.java:423)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.content.ContentResolver.query(ContentResolver.java:946)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.content.ContentResolver.query(ContentResolver.java:881)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.content.ContentResolver.query(ContentResolver.java:837)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at org.lineageos.eleven.utils.MusicUtils.getIdForArtist(MusicUtils.java:923)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at org.lineageos.eleven.utils.NavUtils.openArtistProfile(NavUtils.java:50)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at org.lineageos.eleven.ui.fragments.ArtistFragment.onItemClick(ArtistFragment.java:173)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java:330)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java:1213)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3221)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7397)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
04-17 07:32:26.473 10059 6631 6631 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
-----
Change-Id: I09d8634475d5f5cc5e94bde9c3c0b13b3ed9e458
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
1 file changed