Allow empty album descriptions.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Oct 2011 11:25:06 +0000 (13:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Oct 2011 11:25:06 +0000 (13:25 +0200)
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java

index 1caf186..db26d80 100644 (file)
@@ -442,7 +442,7 @@ public class SoneDownloader extends AbstractService {
                                String id = albumXml.getValue("id", null);
                                String parentId = albumXml.getValue("parent", null);
                                String title = albumXml.getValue("title", null);
-                               String description = albumXml.getValue("description", null);
+                               String description = albumXml.getValue("description", "");
                                String albumImageId = albumXml.getValue("album-image", null);
                                if ((id == null) || (title == null) || (description == null)) {
                                        logger.log(Level.WARNING, "Downloaded Sone %s contains invalid album!", new Object[] { sone });