add missing fix for song == null
fixes an NPE when selecting the plugins menue while no song is loaded
This commit is contained in:
parent
2bc17ec2dd
commit
0608627deb
@ -380,9 +380,11 @@ public class FullPlaybackActivity extends SlidingPlaybackActivity
|
||||
}
|
||||
break;
|
||||
case MENU_PLUGINS:
|
||||
Intent songIntent = new Intent();
|
||||
songIntent.putExtra("id", song.id);
|
||||
queryPluginsForIntent(songIntent);
|
||||
if (song != null) {
|
||||
Intent songIntent = new Intent();
|
||||
songIntent.putExtra("id", song.id);
|
||||
queryPluginsForIntent(songIntent);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user