From 7e85943e2f45b035483f01514a13976ad4607526 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 4 Nov 2010 22:40:21 +0100 Subject: [PATCH] =?utf8?q?Return=20=E2=80=9Cnull=E2=80=9D=20for=20Sones=20?= =?utf8?q?without=20a=20name.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/template/SoneAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index e02396a..a21794d 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -107,7 +107,7 @@ public class SoneAccessor extends ReflectionAccessor { String lastName = profile.getLastName(); if (firstName == null) { if (lastName == null) { - return sone.getName(); + return String.valueOf(sone.getName()); } return lastName; } -- 2.7.4