From: David ‘Bombe’ Roden Date: Mon, 3 Oct 2011 11:25:06 +0000 (+0200) Subject: Allow empty album descriptions. X-Git-Tag: 0.7.2^2~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9ce4deb4666bdb5a48854a9e4380b160303fae82;p=Sone.git Allow empty album descriptions. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 1caf186..db26d80 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -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 });