Fixed NullPointerException in AudioPlayer

This commit is contained in:
daniel oeh 2014-07-26 12:20:19 +02:00
parent f72769f8b4
commit aca79dc5b9
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ public class AudioplayerActivity extends MediaplayerActivity implements ItemDesc
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (drawerToggle.onOptionsItemSelected(item)) {
if (drawerToggle != null && drawerToggle.onOptionsItemSelected(item)) {
return true;
} else {
return super.onOptionsItemSelected(item);