Program: 85699
Project: 85699
Buggy source:
private void SetupButtonListeners(){
  list.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        SwitchToPlaylistSlide();
      }
    }
  }
);
  logo.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      SwitchToNowPlayingSlide();
    }
  }
);
  settings.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      SwitchToSettingsSlide();
    }
  }
);
  backButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        Play(tp.playlist.PreviousTrack());
      }
    }
  }
);
  playButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        if (tp.isInitialised == true) {
          if (tp.isPaused == true) {
            UnPause();
          }
 else {
            Pause();
          }
        }
 else {
          Play(tp.playlist.GetTrack(0));
        }
      }
    }
  }
);
  nextButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        Track t=tp.playlist.NextTrack();
        if (t != null) {
          Play(t);
        }
      }
    }
  }
);
  shuffleButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      tp.playlist.preferences.SetShuffle(!tp.playlist.preferences.GetShuffle());
    }
  }
);
  shuffleCheckBox.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton buttonView,    boolean isChecked){
      tp.playlist.preferences.SetShuffle(isChecked);
    }
  }
);
  repeatButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      tp.playlist.preferences.SetRepeat(!tp.playlist.preferences.GetRepeat());
    }
  }
);
  repeatCheckBox.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton buttonView,    boolean isChecked){
      tp.playlist.preferences.SetRepeat(isChecked);
    }
  }
);
  trackButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        tp.playlist.SortByTitle();
        RefreshList(tp.playlist.GetList());
        ResetFooterButtons();
        trackButton.setImageDrawable(getResources().getDrawable(R.drawable.track48_active));
      }
    }
  }
);
  artistButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        tp.playlist.SortByArtist();
        RefreshList(tp.playlist.GetList());
        ResetFooterButtons();
        artistButton.setImageDrawable(getResources().getDrawable(R.drawable.artist48_active));
      }
    }
  }
);
  albumButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        tp.playlist.SortByAlbum();
        RefreshList(tp.playlist.GetList());
        ResetFooterButtons();
        albumButton.setImageDrawable(getResources().getDrawable(R.drawable.album48_active));
      }
    }
  }
);
  rescan.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      rescan();
    }
  }
);
  chooseMediaDir.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      Intent dirChooserIntent=new Intent(DIR_CHOOSER_ACTION);
      dirChooserIntent.putExtra(DirChooserConstants.ACTIVITY_PARAM_KEY_DIR_CHOOSER_INITIAL_DIR,tp.playlist.preferences.GetMediaPath().toString());
      startActivityForResult(dirChooserIntent,DIR_CHOOSER_REQUEST);
    }
  }
);
}

Fixed version (ground truth):
private void SetupButtonListeners(){
  list.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        SwitchToPlaylistSlide();
      }
 else {
        Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
      }
    }
  }
);
  logo.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      SwitchToNowPlayingSlide();
    }
  }
);
  settings.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      SwitchToSettingsSlide();
    }
  }
);
  backButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        Play(tp.playlist.PreviousTrack());
      }
 else {
        Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
      }
    }
  }
);
  playButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        if (tp.isInitialised == true) {
          if (tp.isPaused == true) {
            UnPause();
          }
 else {
            Pause();
          }
        }
 else {
          Play(tp.playlist.GetTrack(0));
        }
      }
 else {
        Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
      }
    }
  }
);
  nextButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        Track t=tp.playlist.NextTrack();
        if (t != null) {
          Play(t);
        }
      }
    }
  }
);
  shuffleButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      tp.playlist.preferences.SetShuffle(!tp.playlist.preferences.GetShuffle());
    }
  }
);
  shuffleCheckBox.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton buttonView,    boolean isChecked){
      tp.playlist.preferences.SetShuffle(isChecked);
    }
  }
);
  repeatButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      tp.playlist.preferences.SetRepeat(!tp.playlist.preferences.GetRepeat());
    }
  }
);
  repeatCheckBox.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton buttonView,    boolean isChecked){
      tp.playlist.preferences.SetRepeat(isChecked);
    }
  }
);
  trackButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        tp.playlist.SortByTitle();
        RefreshList(tp.playlist.GetList());
        ResetFooterButtons();
        trackButton.setImageDrawable(getResources().getDrawable(R.drawable.track48_active));
      }
    }
  }
);
  artistButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        tp.playlist.SortByArtist();
        RefreshList(tp.playlist.GetList());
        ResetFooterButtons();
        artistButton.setImageDrawable(getResources().getDrawable(R.drawable.artist48_active));
      }
    }
  }
);
  albumButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      if (!tp.playlist.IsEmpty()) {
        tp.playlist.SortByAlbum();
        RefreshList(tp.playlist.GetList());
        ResetFooterButtons();
        albumButton.setImageDrawable(getResources().getDrawable(R.drawable.album48_active));
      }
    }
  }
);
  rescan.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      rescan();
    }
  }
);
  chooseMediaDir.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      Intent dirChooserIntent=new Intent(DIR_CHOOSER_ACTION);
      dirChooserIntent.putExtra(DirChooserConstants.ACTIVITY_PARAM_KEY_DIR_CHOOSER_INITIAL_DIR,tp.playlist.preferences.GetMediaPath().toString());
      startActivityForResult(dirChooserIntent,DIR_CHOOSER_REQUEST);
    }
  }
);
}