1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-30 17:04:51 +01:00

Fix null exception

This commit is contained in:
Joshua Bahnsen 2013-05-17 00:46:00 -07:00
parent 210cd0b0a4
commit fd8519e28d

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 {