aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-10-31 18:36:02 -0700
committerScott Jackson <daneren2005@gmail.com>2012-10-31 18:36:02 -0700
commitf06b69ae21d0fad0431395c7fe98b816826484ed (patch)
tree710b9b1d3c4b4173d64a13e093a113dc3ebf6433 /subsonic-android
parent49ec9441ae2024fe5a48dbec7dcdfdf181604b43 (diff)
downloaddsub-f06b69ae21d0fad0431395c7fe98b816826484ed.tar.gz
dsub-f06b69ae21d0fad0431395c7fe98b816826484ed.tar.bz2
dsub-f06b69ae21d0fad0431395c7fe98b816826484ed.zip
convert to "" for playlist fields which are null
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java b/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java
index 3ac5c553..14a068b8 100644
--- a/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java
+++ b/subsonic-android/src/github/daneren2005/dsub/domain/Playlist.java
@@ -39,10 +39,10 @@ public class Playlist implements Serializable {
public Playlist(String id, String name, String owner, String comment, String songCount, String created) {
this.id = id;
this.name = name;
- this.owner = owner;
- this.comment = comment;
- this.songCount = songCount;
- this.created = created;
+ this.owner = (owner == null) ? "" : owner;
+ this.comment = (comment == null) ? "" : comment;
+ this.songCount = (songCount == null) ? "" : songCount;
+ this.created = (created == null) ? "" : created;
}
public String getId() {