From: David ‘Bombe’ Roden Date: Thu, 4 Nov 2010 21:40:21 +0000 (+0100) Subject: Return “null” for Sones without a name. X-Git-Tag: 0.2-RC1~47 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7e85943e2f45b035483f01514a13976ad4607526;p=Sone.git Return “null” for Sones without a name. --- 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; }