aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/view/SongView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
index 7c7f5ae6..0d4489da 100644
--- a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
+++ b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
@@ -90,8 +90,10 @@ public class SongView extends UpdateView implements Checkable {
if(!song.isVideo()) {
if(song instanceof PodcastEpisode) {
String date = ((PodcastEpisode)song).getDate();
- int index = date.indexOf(" ");
- artist.append(date.substring(0, index != -1 ? index : date.length()));
+ if(date != null) {
+ int index = date.indexOf(" ");
+ artist.append(date.substring(0, index != -1 ? index : date.length()));
+ }
}
else if(song.getArtist() != null) {
artist.append(song.getArtist());