From 78413c00035e7457b425f09df76415e7eb4737c5 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 17 Jan 2013 22:10:13 -0800 Subject: Fix a NullPointerException --- .../src/github/daneren2005/dsub/activity/DownloadActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsonic-android/src/github') 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 { -- cgit v1.2.3