From: David ‘Bombe’ Roden Date: Tue, 5 Aug 2014 15:59:34 +0000 (+0200) Subject: Description can never be null. X-Git-Tag: 0.9-rc1^2~3^2~160 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=43f33109f4754420ea449871dfcbd4ddf178798c Description can never be null. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 6703fc4..69f8561 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -437,7 +437,7 @@ public class SoneDownloader extends AbstractService { String title = albumXml.getValue("title", null); String description = albumXml.getValue("description", ""); String albumImageId = albumXml.getValue("album-image", null); - if ((id == null) || (title == null) || (description == null)) { + if ((id == null) || (title == null)) { logger.log(Level.WARNING, String.format("Downloaded Sone %s contains invalid album!", sone)); return null; }