Fix null exception

This commit is contained in:
Joshua Bahnsen 2013-05-17 00:46:00 -07:00
parent 210cd0b0a4
commit fd8519e28d
1 changed files with 3 additions and 1 deletions

View File

@ -860,7 +860,9 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
.setText(R.string.download_playerstate_buffering);
break;
case STARTED:
if (getDownloadService().isShufflePlayEnabled()) {
final DownloadService downloadService = getDownloadService();
if (downloadService != null && downloadService.isShufflePlayEnabled()) {
statusTextView
.setText(R.string.download_playerstate_playing_shuffle);
} else {