aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-01-17 22:10:13 -0800
committerScott Jackson <daneren2005@gmail.com>2013-01-17 22:10:13 -0800
commit78413c00035e7457b425f09df76415e7eb4737c5 (patch)
tree958e4dbb3bab09989cffe72fe55697d24f5c1332 /subsonic-android
parent6694a918ed25ebe3ba3e6c8559f27914cc61c1c7 (diff)
downloaddsub-78413c00035e7457b425f09df76415e7eb4737c5.tar.gz
dsub-78413c00035e7457b425f09df76415e7eb4737c5.tar.bz2
dsub-78413c00035e7457b425f09df76415e7eb4737c5.zip
Fix a NullPointerException
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
index 3ad70134..dc70d4b8 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
@@ -519,7 +519,7 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
@Override
protected void onPrepareDialog(int id, Dialog dialog) {
if (id == DIALOG_SAVE_PLAYLIST) {
- String playlistName = getDownloadService().getSuggestedPlaylistName();
+ String playlistName = (getDownloadService() != null) ? getDownloadService().getSuggestedPlaylistName() : null;
if (playlistName != null) {
playlistNameView.setText(playlistName);
} else {