From 7708df5b6f4d1cf1416a8202b825a4f6f78f289e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 24 Oct 2013 21:59:04 +0200 Subject: [PATCH] Return absent() instead of null. --- src/main/java/net/pterodactylus/sone/core/SoneParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index b2d82be..3158a0b 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -339,7 +339,7 @@ public class SoneParser { String clientVersion = clientXml.getValue("version", null); if ((clientName == null) || (clientVersion == null)) { logger.log(Level.WARNING, String.format("Download Sone %s with client XML but missing name or version!", sone)); - return null; + return absent(); } return of(new Client(clientName, clientVersion)); } -- 2.7.4