add missing fix for song == null

fixes an NPE when selecting the plugins menue while no song is loaded
This commit is contained in:
Adrian Ulrich 2017-03-08 18:32:58 +01:00
parent 2bc17ec2dd
commit 0608627deb

View File

@ -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);