aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-12-06 10:26:28 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-12-06 10:26:28 -0800
commit16037ace5f462fe29f75bad9dfc9bdd11a6140a1 (patch)
treeeb5baf1a83a4ba99d1fa700fbdadda54d087e33a
parentf53152091f41bdeb4785db203d8da088fa4ffa3f (diff)
downloaddsub-16037ace5f462fe29f75bad9dfc9bdd11a6140a1.tar.gz
dsub-16037ace5f462fe29f75bad9dfc9bdd11a6140a1.tar.bz2
dsub-16037ace5f462fe29f75bad9dfc9bdd11a6140a1.zip
Fix for when album is null in details
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 478f788d..ed900b92 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -907,7 +907,12 @@ public class SubsonicFragment extends Fragment {
if(song instanceof PodcastEpisode) {
msg += "Podcast: " + song.getArtist() + "\nStatus: " + ((PodcastEpisode)song).getStatus();
} else if(!song.isVideo()) {
- msg += "Artist: " + song.getArtist() + "\nAlbum: " + song.getAlbum();
+ if(song.getArtist() != null && !"".equals(song.getArtist())) {
+ msg += "Artist: " + song.getArtist();
+ }
+ if(song.getAlbum() != null && !"".equals(song.getAlbum())) {
+ msg += "\nAlbum: " + song.getAlbum();
+ }
}
if(song.getTrack() != null && song.getTrack() != 0) {
msg += "\nTrack: " + song.getTrack();