Commit 6c1401b8 authored by Edward Wang's avatar Edward Wang
Browse files

src: Check for null in AudioListFragment.onContextMenuItemSelected()

parent a758a87f
......@@ -162,6 +162,9 @@ public class AudioListFragment extends SherlockListFragment {
public boolean onContextItemSelected(MenuItem item) {
AdapterContextMenuInfo menuInfo = (AdapterContextMenuInfo) item.getMenuInfo();
if(menuInfo == null) // getMenuInfo can be NULL
return super.onContextItemSelected(item);
int startPosition;
List<String> medias;
int id = item.getItemId();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment